Help with making an item give an item

Started by GhostlyBlob on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with making an item give an item

So basically I need help with making an item give you items what, the item is a bag that gives healing items like potions, totems of undying, and etc I want to know how I can make it so when you right click the bag it will give you an healing item then the bag will go on a cooldown and I don't know how to do this which is why I've come here for help 

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for your custom item, in the…
Sun, 11/23/2025 - 05:23

for your custom item, in the triggers tab use the on right click (air) not block, then there is a cooldown block you can use. For the items you can just make it spawn dropped items of your choice. and make sure that before all that, use an IF statement for when the provided itemstack is not on cooldown.