Custom Totem Of Undying

Started by Mkdog6 on

Topic category: Help with modding (Java Edition)

Last seen on 23:05, 16. May 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Totem Of Undying

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. 

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a procedure with global…
Sat, 07/15/2023 - 16:31

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.