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

Last seen on 15:25, 3. Jan 2024
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?

Last seen on 14:02, 2. Apr 2024
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.

Last seen on 15:25, 3. Jan 2024
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.