Hey, I have an idea which could help a lot of people when they work on mods.
If someone could make a tool (not in-game) to make it easier for modders to code in structures.
Normally a modder would have to write endless lines of code, not even knowing if it was working.
i did it like that too, but someone told me about this method, it saves allot of space, eventho i just needed 100 more lines of text for the roof, but i reached max capacity of my worlgen***.java file :tongue.gif:
here is my new method, i still dont know how to make like box X+Y+Z, i can only define it into X+Y, X+Z, Y+X, Y+Z, Z+Y, Z+X
It will generate the bits from where your X+Y+Z(i, j, k) starts on 0.
So you will have to use your brain a bit and calculate how many blocks you will have to move forwards,backwards,up,down,left or right.
Asuming you know how to make atleast the blocks place correctly, you can try to replace your current code for this.
(Note, this will only make rows! 1x)
Breakdown if you dont get it.
p is allways 0.
i've set it to -6, so it will go back by 6 blocks.
since i've set it to i, (i goes to left or right).
i- = right/ j- = down/ k- = backwards
i+ = left / j- = up / k+ = forwards
I did i+-6 equals to -6, so it goes 6 blocks to the right.
Then i did
i have 45 rows going back and forwards so it will make 27 blocks from left to right everytime i increase a row or decrease going back or forwards.