Started by
PhoenixofDeath
on
Topic category: Help with MCreator software
I want to check if the player would die from an attack/damage of any kind, to revive him afterwards if certain conditions are met. (same logic as Totem of Undiying)
I want my item to have an ability that prevents the wearer from dying while holding it. After that it would be good if the item is not consumed, but gets a cooldown on this ability.
Is this possible, or too complex?
anything is possible if you try hard enough !!!! :DDD
use an event checking for if the player was damaged, then somehow check how much damage the event dealt, and if the player is holding the item and the player's current health amount minus the damage dealt is less than 1, cancel the global trigger and do whatever else the item does
alternatively maybe you could check if a player dies or is dead and then try to restore their stuff, but remember that first spawning in a world and exiting the end also count as dying
"first spawning in a world and exiting the end also count as dying" is that real tho? Exiting the end counts as dying??