Started by
Mkdog6
on
Topic category: Help with Minecraft modding (Java Edition)
I want to create a custom item like the totem of undying that works the same way. Everything I have tried doesn't work. I am using Fabric Generator 2023.2 for 1.19.2.
Add a procedure with global trigger Entity dies. Check if it's a player. Check if the entity is holding your item. If so: Cancel event that triggered global trigger. Set the player's health back to full. Remove item from player's inventory. If you want, you can also Play totem-like animation.