How can I create an NBT file for a spawner in minecraft? If I already have the spawner in a world, how can I extract that as an NBT file for use in other things?
-
Do you want an "NBT file" (how NBT data is stored, readable with an NBT editor) or the text that you would type into a command to create that block (human-readable plaintext, looks similar to JSON).– SirBenetCommented Jun 10, 2016 at 17:54
-
The actual NBT file itself. I would like to use it for McDungeon for custom spawners. That program reads in NBT files to generate spawners.– MinecraaftCommented Jun 10, 2016 at 18:00
1 Answer
Structure blocks can allow you to select an area, and export it as a NBT file.
The saved .NBT file will contain all of the information for the blocks, entities and tile-entities within that region:
A tool such as NBTExplorer will let you move these tags up to root and delete everything else, to have an NBT file containing only the tags of the spawner:
If you're not in 1.10 yet, you may need to make a copy of the world and open that in 1.10 to use structure blocks.