Started by
GhostlyBlob
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
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
GranKnight sorry to be bothersome but I can't find the Set number to: block
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.
GranKnight I can't really understand that im more of a visual learner
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