Started by
Uma12
on
Topic category: Help with Minecraft modding (Java Edition)
when regeneration or health boost is added to a tick event on armor regeneration doesn't work and health boost won't let you past 10 hearts. I'm assuming because it is being reset 20 times a second. is there a way to get past this?
on armour tick make a nbt tag called ExtraHealth. In the procedure take the current health of the entity and minus ExtraHealth from it. Add the health boost and then add ExtraHealth to the current health.
Note that this only works in theory, the way i provided was not tested
i meant minus 20 from the current health to get ExtraHealth
I mean you could just have a procedure that activates when wearing the armor and gives you regen and hb. I've done this sort of thing before and it works.
what about just the regen?