Increasing player max health not working

Started by Coda on

Topic category: Help with modding (Java Edition)

Last seen on 11:42, 17. Jan 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Increasing player max health not working
Sat, 01/16/2021 - 18:37 (edited)

Hi there,

So when creating a custom procedure for increasing the maximun health of the player the procedure does not work.

Here is the procedure.

Image of te procedure

and the output:

Output

Player max health should be 20 + 6 = 26.

Any suggestions?

Edited by Coda on Sat, 01/16/2021 - 18:37
Last seen on 18:35, 22. Aug 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Max health can't be changed…
Sat, 01/16/2021 - 18:52

Max health can't be changed so. When you do it, you simply set your health at 26, but because your max health is still 20 it automatically decreases to 20

Last seen on 11:42, 17. Jan 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Makes sense, my bad.
Sat, 01/16/2021 - 20:11

Makes sense, my bad.

Last seen on 04:15, 27. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to use the new …
Sat, 01/16/2021 - 21:52

You need to use the new /attribute command to directly change the stats of the player.