MikaXD Posted August 11, 2014 Share Posted August 11, 2014 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 Quote Link to comment Share on other sites More sharing options...
martijnwoudstra Posted August 11, 2014 Share Posted August 11, 2014 There is a special mod which adds ingame support for .schematics https://github.com/Lunatrius/Schematica Quote Link to comment Share on other sites More sharing options...
MikaXD Posted August 11, 2014 Author Share Posted August 11, 2014 This mod doesn't really help me with READING .schematic files Quote Link to comment Share on other sites More sharing options...
jabelar Posted August 11, 2014 Share Posted August 11, 2014 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. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/ Link to comment Share on other sites More sharing options...
MultiMote Posted August 11, 2014 Share Posted August 11, 2014 http://www.minecraftforge.net/forum/index.php/topic,21045.0.html Quote Link to comment Share on other sites More sharing options...
Bektor Posted August 12, 2014 Share Posted August 12, 2014 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. Quote Developer of Primeval Forest. Link to comment Share on other sites More sharing options...
Recommended Posts
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.