#how to increase max health with minecraft:component

1 messages · Page 1 of 1 (latest)

turbid osprey
#

hello! i'm creating a script where i want to increase the player max health

i tried something like this:
player.getComponent("minecraft:health").setCurrentValue(40);
works but don't increase the max health but refull my actually health

formal star
#

It is impossible to increase maximum health using scripts.

turbid osprey
#

there is another method?

floral dawn