Posted February 22, 201411 yr i am creating a turtle and when you right click with a block there happens something so i tried this: public boolean interact(EntityPlayer par1EntityPlayer) { ItemStack itemstack = par1EntityPlayer.inventory.getCurrentItem(); if (itemstack != null && itemstack.getItem() == Blocks.chest && !par1EntityPlayer.capabilities.isCreativeMode) { } return true; } but it doesnt work because it is itemstack.getItem does anyone know how to do a interact function with a 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.