Posted January 26, 201510 yr This is onBlockActivated, in the Block class public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) { return false; } The first five parameters I can guess are the world the block is in, the x, y, and z coords of the block, and the player doing the activation. From this I found the 6th one is the metadata of the block. What are the floats? Player coordinates?
January 26, 201510 yr Yeah, the last three floats are the x, y, and z coordinates of the player, in that order. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
January 26, 201510 yr Author Ah. Good thing you replied just then, as I had just marked this as solved
January 26, 201510 yr Author Are those still in world coordinates? Or are they in some coordinate system local to the block?
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.