Posted September 4, 20205 yr I can't find i way to remove(consume) an item after onItemRightClick... help please? I tried doing @Override public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) { playerIn.heal(1.0f); return ActionResult.resultConsume(playerIn.getHeldItem(handIn)); } but it still doesn't do anything.
September 4, 20205 yr ItemStack.shrink() This can be found easily in other places like food, bow, etc... please have a look at them.
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.