Is there a way to make mobs invincible? I have already spent a while looking for it on google, but all I get is people telling me to give it a resistance potion effect. I am sure there is some attribute that I can give a summoned mob to make it invincible, but I don't know how to do it. How can I do this?
Minecraft – Making mobs invincible
minecraft-java-edition
Related Topic
- Minecraft – Making player invincible to mobs, but not other players
- Minecraft – Stacking mobs on players in vanilla minecraft
- Minecraft – unkillable mobs
- Minecraft – Potion that hurts all mobs
- Minecraft – How to use command blocks to make a mob arena in 1.8
- Minecraft – How to shapeshift into other mobs in minecraft
- Minecraft – Increasing xp dropped by mobs
Best Answer
For simply making mobs invincible, this method is now outdated, see David Toh's solution using the new "Invulnerable" tag.
You need to use a resistance effect of level 5 or higher. This is the closest to a simple invincible tag we have at the moment, it gives the mob 100% resistance to damage, so is effectively the same thing. To summon a mob with an effect, you use the tags
So for an invincible skeleton, you would say:
The only way to kill this mob will then be either through mods, or using void damage (falling out of the world).
Extra Note: The mob may still de-spawn if it's not in a loaded area, to avoid this you can name your mob:
Replace "Example Name" with a name of your choice.
In answer to the comment about using multiple effects:
You can have as many effects as you like by formatting your active effects section of the summon like so:
Full command for invincible and invisible skeleton named "Example Name"