Posted July 7, 201312 yr Hey guys Im working on a mod and we have very big buildings so when we attempt to use world.setBlock we get 27k lines of code for a building... So we are looking for a way to build the buildings from schematics (schematics from mcedit) Please help me At least show me where to look for this system... http://r1306.hizliresim.com/1b/1/np1mm.png[/img]
July 7, 201312 yr You shouldn't need to use 27k world.setBlock invocations. You can use if statements, for loops, etc. and it will cut down drastically on that amount. I implemented a world-gen feature for my mod called Building Blocks that uses a new file to organize the blocks into a layer-by-layer format and reads them back later when the world is generating. I wouldn't say necessarily to use Building Blocks, but if you can't figure out how to use schematics (I didn't even want to bother), it might be a good alternative.
July 7, 201312 yr Author You shouldn't need to use 27k world.setBlock invocations. You can use if statements, for loops, etc. and it will cut down drastically on that amount. I implemented a world-gen feature for my mod called Building Blocks that uses a new file to organize the blocks into a layer-by-layer format and reads them back later when the world is generating. I wouldn't say necessarily to use Building Blocks, but if you can't figure out how to use schematics (I didn't even want to bother), it might be a good alternative. So what do you mean by building blocks ? Is it a mod or what ? http://r1306.hizliresim.com/1b/1/np1mm.png[/img]
July 7, 201312 yr it's his mod as he said. Also you could see if any of the schematic API's work. http://www.minecraftforum.net/topic/1204595-144-elconquistadors-mods-schematicapi-updated-to-144/ If you guys dont get it.. then well ya.. try harder...
July 7, 201312 yr Author You shouldn't need to use 27k world.setBlock invocations. You can use if statements, for loops, etc. and it will cut down drastically on that amount. I implemented a world-gen feature for my mod called Building Blocks that uses a new file to organize the blocks into a layer-by-layer format and reads them back later when the world is generating. I wouldn't say necessarily to use Building Blocks, but if you can't figure out how to use schematics (I didn't even want to bother), it might be a good alternative. With some code updating i made it work that you dude http://r1306.hizliresim.com/1b/1/np1mm.png[/img]
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.