Posted February 11, 201312 yr Hello, how can I make a Block detecting other Blocks nearby ( 3x3 ) Busti PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
February 11, 201312 yr Block block = world.getBlockAt(x, y, z); // not sure what the real method name is, it's something like getBlock something... If you guys dont get it.. then well ya.. try harder...
February 12, 201312 yr omg totaly wrong, getBlockId return id of block, not a block, to get a block nearby u need to public static int getBlockNearby(World w){ for(int i = 0; 0<3, i++){ return Block.blocksList[w.getBlockId(x +i, y+ i, z+ i)].blockID; } }
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.