When I set an entities health to 5000 it's set to 1024 instead? This happens to any amount of health above 1024.
My server version: 1.17.2
Game version: 1.18.2 OptiFine
Plugins: Citizens, MorkazSk, skript-holo, Misk, Vault, Essentials, WorldEdit, skript-gui, ViaRewind, skQuery.
function spawnGreatUndeadServant(l: location):
spawn 1 skeleton at {_l}
wait 1 tick
set tool of last spawned skeleton to unbreakable diamond sword of sharpness 5 named "&bTHE SERVANT'S RAPIER &8[&6★★★★&7☆&8]"
set last spawned skeleton's helmet to golden helmet of protection 4
add 1 to {GreatUndeadServant}
set {_undead} to last spawned skeleton
set {_undead}'s max health to 5000
set {_undead}'s health to 5000
The only thing not working is the health being set, I have no errors.