Health boost and regeneration on armor

Started by Uma12 on

Topic category: Help with modding (Java Edition)

Last seen on 02:13, 7. Jul 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Health boost and regeneration on armor

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?

 

Last seen on 05:52, 18. Oct 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on armour tick make a nbt…
Fri, 07/17/2020 - 22:53

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

Last seen on 05:52, 18. Oct 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i meant minus 20 from the…
Fri, 07/17/2020 - 22:54

i meant minus 20 from the current health to get ExtraHealth

Last seen on 18:25, 16. Jun 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean you could just have a…
Thu, 08/06/2020 - 15:42

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.

Last seen on 03:27, 2. Nov 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what about just the regen?
Thu, 05/27/2021 - 21:34

what about just the regen?