twitcy Posted April 13, 2022 Posted April 13, 2022 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.
Wyndexx Posted April 14, 2022 Posted April 14, 2022 I would check your essentials config file for a max health limit. On my server, I was able to go up to 500,000 max health before it capped out, and I do not use essentials. If there is no setting in essentials, maybe check the server settings? Main MC account: Gam3rBoi (VIP in MH) Alt MC account: *Gam3rBoi2147 Farcade server owner Skripter with 6+ months experience + time learning coding concepts Message me through the forums if you need anything!
twitcy Posted April 15, 2022 Author Posted April 15, 2022 On 4/14/2022 at 7:11 AM, Gam3rBoi said: I would check your essentials config file for a max health limit. On my server, I was able to go up to 500,000 max health before it capped out, and I do not use essentials. If there is no setting in essentials, maybe check the server settings? I checked essentials config and the server settings, but I didn't find anything. I may try temporarily removing Essentials, though. Are there any other possibilities you could think of?
twitcy Posted April 16, 2022 Author Posted April 16, 2022 Found the issue! In spigot.yml there is this: attribute: maxHealth: max: 2048 movementSpeed: max: 2048 attackDamage: max: 2048 By setting the 2048 to 999999 it fixed the problem. (for anyone who may encounter this problem and see this post)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now