Posted August 29, 201312 yr I am creating an item that will perform a function on right click. I am using the OnItemRightClick function of the Item class, but I noticed that when I right click, the event gets fired off twice. What would be causing this? My code is nothing special at the moment public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { entityplayer.addChatMessage("HELLO WORLD."); itemstack.damageItem(1, entityplayer); return itemstack; } Any help would be greatly appreciated!
August 29, 201312 yr Author I figured it out...I didn't have the world.isremote check. It is working now. Thanks!
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.