Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Convert Minecraft 1.9 structure block nbt files to schematics

Comments in 'Plugin Development' started by thebigsmileXD, Oct 21, 2016.

  1. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Hello fellas, back at it again with the white Vans..o_O
    I wonder if anyone here can help me coding a plugin that converts these 1.9 structure block .nbt files to a .schematic file.

    The blocks in that format are saved as blockstate, so no Block::Meta but a number representing that combination.

    In Java it uses BlockPalette, every block is somehow added to that "array"

    I would need a list from that "array", to know what id:meta is what blockstate.

    Maybe you need some java skills and make a forge mod to return these or something..

    Or maybe you can reference me a Spigot/bukkit/etc file that has all these listed..

    Any help is appreciated.

    (Please no questions like "what are these structure nbt files" :mad:)
    HimbeersaftLP likes this.
  2. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    i assume they do not store things in a plain text format so a phraser library/class could help reading the file
    probably will take some reverse engineering to build that
  3. Svile
    Offline

    Svile Active Member

    Joined:
    Mar 30, 2015
    Posts:
    239
    Minecraft User:
    svile
    I can help you :)

    Here there is a better explaination of the .nbt structure:

    http://minecraft.gamepedia.com/Structure_block_file_format
  4. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Again, thanks to @Svile
    https://github.com/svilex/CuboidConverter
    Its actually fairly easy due to structureblocks in MC saving them the same way

    Adittion: in forge they were weird numbers as blockstates, which changed in 1.10 - Thanks to mojang.
    They now use namespaces.

    I may add the plugin by svilex as soft-depend to my MagicWE plugin, so to paste them in PM. Yay!
    HimbeersaftLP likes this.
  5. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    The code of svilex will be in ClearSky to fully support structures
    HimbeersaftLP likes this.
  6. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    um the repo is a 404 can you update link?
    Primus likes this.
  7. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    thebigsmileXD and HimbeersaftLP like this.
  8. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
  9. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    HimbeersaftLP likes this.

Share This Page

Advertisement