Minecraft Forge 1.19.4 / 2023.3 [How to make Attribute MAX HEALTH +1 persistant after death.]

Started by Cynwale on

Topic category: Troubleshooting, bugs, and solutions

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Minecraft Forge 1.19.4 / 2023.3 [How to make Attribute MAX HEALTH +1 persistant after death.]

Hello, I'm using https://mcreator.net/plugin/88645/azziers-tools this plugin in my Mod in order to make an Item gives half a heart once used, it works, but if he dies, the attribute is restored to default.

How could I work around that?

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can store the additional…
Sun, 12/17/2023 - 05:38

you can store the additional health in a variable and reapply it when the player dies.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's exactly what I was…
Sun, 12/17/2023 - 10:02

That's exactly what I was doing last night, I just need to find a way to do it without breaking some things.