Posted March 8, 20223 yr I have an item, and i would like it to give some effect when in inventory, ideally anywhere in inventory and not just in hotbar/in hand. So i'm looking for a way to check if it is in inventory on tick, something like "tickInventory" or something
March 8, 20223 yr Author Nevermind, I overridded the inventoryTick() method of the Item class and used player.inventory.contains(stack) to check it the item was there.
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.