Posted April 18, 201510 yr What I have right now is: public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float px, float py, float pz) { if (world.getBlock(x, y + 1, z) == Blocks.air) { world.setBlock(x, y + 1, z, Blocks.water); return true; } return false; } But I want it so if a player clicks on the top of the block it will spawn at y +1 water, if they click on the bottom, y -1 cobblestone etc. (as an example) Any ideas how to get the face of block clicked on? Why bother?
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.