Science! Posted January 26, 2015 Posted January 26, 2015 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? Quote
shadowfacts Posted January 26, 2015 Posted January 26, 2015 Yeah, the last three floats are the x, y, and z coordinates of the player, in that order. Quote Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Science! Posted January 26, 2015 Author Posted January 26, 2015 Ah. Good thing you replied just then, as I had just marked this as solved Quote
Science! Posted January 26, 2015 Author Posted January 26, 2015 Are those still in world coordinates? Or are they in some coordinate system local to the block? Quote
Recommended Posts
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.