Started by
PotassiumCat
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to create a custom item that acts like a totem but has durability and a cooldown. I can't figure out how to damage it and apply the cooldown in the "entity dies" global procedure.
For the durability of the totem, you probably have to make it a "Tool" not an "Item". So you can easily change the Durability. For the Tool-Type, select "Special". Then, you wanna make a Procedure for that totem, which just features, that the totem gets a cooldown of [...] ticks. After that, go back to the "When entity dies" procedure and make it call the Cooldown-Procedure from there.
It doesn't work since the damage and cooldown procedure requires "itemstack" which "when entity dies" does not provide.