Posted July 9, 201510 yr im stuck with onrightclick event im trying to understand it but with no luck so im hoping some one out there can help me trying to make this item on right click removes 1 Heath and add a item in the inventory but only if heath over 1 heath i hope i really hope that some one out there can help me
July 9, 201510 yr Show your code. Methods you will need: EntityLivingBase#getHealth() EntityLivingBase#attackEntityFrom(DamageSource, float) EntityPlayer#inventory#addItemStackToInventory(ItemStack) http://i.imgur.com/NdrFdld.png[/img]
July 9, 201510 yr how do you remove an item stack from an inventory? How is that related to this topic? http://i.imgur.com/NdrFdld.png[/img]
July 9, 201510 yr because you said, that he needs to use an additemstack method but ill make a thread. Im serious don't look at it!!
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.