GooberGunter Posted July 21, 2017 Posted July 21, 2017 (edited) I've been trying to make a structure using the nbt files from the structure block but I don't know where to start, are there any guides, tutorials, or original minecraft code that I could look at? I'd look at the igloo code but I haven't been able to find it EDIT: I found it. It just happened to be in the only one I somehow missed: ComponentScatteredFeaturePieces.java Edited July 21, 2017 by GooberGunter Quote
GooberGunter Posted July 21, 2017 Author Posted July 21, 2017 But I don't know what parts from the igloo class I do need and what parts I don't need Quote
TheXFactor117 Posted July 21, 2017 Posted July 21, 2017 (edited) As I said in the other thread, you need to create a Template variable. It takes a TemplateManager (which you can get from WorldServer) and a ResourceLocation for your NBT file (and maybe a couple other parameters). Once you have this, just call the addBlocksToWorld method when you want to generate the structure. I have an example here, though this is kinda complicated code. Just look for Templates in it and it should give you an idea. Edited July 21, 2017 by TheXFactor117 1 Quote Developer of Levels and Lost Eclipse
GooberGunter Posted July 21, 2017 Author Posted July 21, 2017 Yeah, I looked at your code and I get the concept completely, I got the results I wanted. Thanks! I completely forgot that you had linked the example Quote
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.