Posted August 11, 201411 yr I want to spawn some new structures in minecraft but some of them are pretty big so I need a lot of code. With MCEdit you can create .schematic files which contains my structure. And here's the question: How can I read the blocks and metadata from a .schematic file? On the internet I didn't find anything useful for the current version. Sorry for my bad english
August 11, 201411 yr There is a special mod which adds ingame support for .schematics https://github.com/Lunatrius/Schematica
August 11, 201411 yr This mod doesn't really help me with READING .schematic files Yes it does. There is code in there, I think the SchematicPrinter class which goes through the file and turns it into blocks. That code explains how the schematic file is interpreted. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
August 12, 201411 yr I think this could help you: https://bitbucket.org/cltnschlosser/minecolonies/src/8e91ab516b21140ec1e063a1aba8b61b4c56f3df/src/main/java/com/github/lunatrius/schematica/world/schematic/?at=master https://bitbucket.org/cltnschlosser/minecolonies/src/8e91ab516b21140ec1e063a1aba8b61b4c56f3df/src/main/java/com/minecolonies/util/Schematic.java?at=master This mod is using Schematica for placing schematics in the world and there are classes that can show you how to read the schematic files and how to scan a building that you can put it into a schematic file. Developer of Primeval Forest.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.