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.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didn't fully understood…
Sun, 11/23/2025 - 18:16

I didn't fully understood this can you show me an example please and also I want to make it based so it gives a random item not just one specific item every time 

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GranKnight sorry to be…
Tue, 12/02/2025 - 04:31

GranKnight sorry to be bothersome but I can't find the Set number  to: block

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Those are local variables,…
Tue, 12/02/2025 - 08:34

Those are local variables, you can create them on the right side of the procedure, after you name and select the number variable name/type, then in the components tab on the left you should see it. 

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GranKnight I can't really…
Wed, 12/03/2025 - 02:18

GranKnight I can't really understand that im more of a visual learner

 

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When you open the procedure…
Wed, 12/03/2025 - 08:21

When you open the procedure there are 2 sections on the right side, one called variables/local variables and dependencies, in the variable section there is a green + button, if you click that you can select the name and type. This page shows you when you go to "Dig down 5 blocks including itself"
https://mcreator.net/wiki/procedure-system