While summoning a skeleton with a spawn egg it took 3 hits with my diamond sword, but when summoning with the code the skeleton had particle effects, but still took 3 hits to kill.
Health boost does not change the current health, only maximum. Even when players receive the effect, they will not have those hearts filled automatically. In this case, you'd also have to apply a healing effect alongside the health boost.
What may be simpler is to just change the maxHealth attribute, which will set the current health equal to it when summoned (and is also more accurate):
Health boost does not change the current health, only maximum. Even when players receive the effect, they will not have those hearts filled automatically. In this case, you'd also have to apply a healing effect alongside the health boost.
What may be simpler is to just change the maxHealth attribute, which will set the current health equal to it when summoned (and is also more accurate):
Thanks, that worked. I tried changing that attribute before I tried using an effect, but I think I accidentally only added 1 HP, which is why is still only took 3 hits.
I used this code to summon a skeleton with health boost:
While summoning a skeleton with a spawn egg it took 3 hits with my diamond sword, but when summoning with the code the skeleton had particle effects, but still took 3 hits to kill.
Health boost does not change the current health, only maximum. Even when players receive the effect, they will not have those hearts filled automatically. In this case, you'd also have to apply a healing effect alongside the health boost.
The above skeletons starts with 50 hearts.What may be simpler is to just change the maxHealth attribute, which will set the current health equal to it when summoned (and is also more accurate):
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Thanks, that worked. I tried changing that attribute before I tried using an effect, but I think I accidentally only added 1 HP, which is why is still only took 3 hits.