Custom Totem Of Undying

Started by Mkdog6 on

Topic category: Help with Minecraft modding (Java Edition)

Active 9 months ago
Joined Jun 2023
Points:
156

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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. 

Active 1 year ago
Joined Nov 2022
Points:
322

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 93
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.