Started by
amdre
on
Topic category: Help with Minecraft modding (Java Edition)
Trying to make a boss do 1 action when he gets bellow 50%HP. "the trigger is when entity gets hurt in the mob triggers"
Topic category: Help with Minecraft modding (Java Edition)
Trying to make a boss do 1 action when he gets bellow 50%HP. "the trigger is when entity gets hurt in the mob triggers"
A simple way to do it is to add a hidden potion effect on tick update when below 50% hp after like a 2 tick delay when they go below that amount, then check if the entity has that hidden effect or not.
Ty mate but I actually make it after 2 days of trying, with a global variable, i call for another procedure turn the variable between true and false so when he reach half of health the action only will ocour once. :D
Yea that works too, the potion effect is usually a last resort, well good luck with your mod!
I kinda wanna know how to do this for my boss I would love to see how you have done it