Increasing player max health not working

Started by Coda on Sat, 01/16/2021 - 17:23

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:
  • Tracker tickets:
  • 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 08:43, 8. Mar 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Makes sense, my bad.
Sat, 01/16/2021 - 20:11

Makes sense, my bad.

Last seen on 13:02, 3. Mar 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.