Health boost and regeneration on armor

Started by Uma12 on Fri, 07/17/2020 - 22:03

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Health boost and regeneration on armor
Fri, 07/17/2020 - 22:03

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 06:07, 11. May 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 06:07, 11. May 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 10:37, 5. Jun 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 11:52, 23. Jun 2021
Joined May 2021
Points:

User statistics:

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

what about just the regen?