Custom totem with durability and cooldown

Started by PotassiumCat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom totem with durability and cooldown

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.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For the durability of the…
Thu, 06/19/2025 - 17:02

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.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesn't work since the…
Fri, 06/20/2025 - 08:13

It doesn't work since the damage and cooldown procedure requires "itemstack" which "when entity dies" does not provide.