Posted May 29, 201411 yr Hey, I'm making a multiblock with the .getBlockId method. It all compiles beautifully, however, how do I set where my "main" block is(the one I right click). I understand how the method works okay, but the tutorial I followed didn't explain how to set the "main" block. I understand how this is probally basic java, however I don't understand. I want my main block to be as showed - where S is the other blocks, and M is the "main" block: SSS SSS SSS /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ SSS SSS SMS /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ SSS SSS SSS /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ in 3D layered order. My code is like so: http://paste.ofcode.org/a6Cj9u63iQWkQ9yqDyAHxS
May 29, 201411 yr ....................... Learn how to use "for" loops. Don't follow a "tutorial" that doesn't explain the stuff.
May 29, 201411 yr Author Yeah. To be honest though, the tutorial that I followed ( ) used his own multiblock maker program. It's the only one that I can find that works, only the program doesn't work! The code I got is based of pausing the video and finding a pattern in the code, so I can understand why he didn't explain it. However, can someone explain how to solve it?
May 29, 201411 yr You are supposed to write code, not expect it from a machine or other program. If you find it too hard, take a break and try something else.
May 30, 201411 yr You shouldn't use programs (generators) to get code. You need to do it manually. Loops are statements that you call that sets a value until it is stopped by an integer you set. Example: for (int i = 0; i < 30; i++) { world.setBlock(x + i, y, z); } //It adds world.setBlock (however many times you put as that integer, in this case 30).
May 30, 201411 yr Author Thanks for the help I made a really nooby mistake, I was checking if the block I'm placing is block id 30(x + 0, y + 0, z + 0) *facepalms*
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.