Arqade Asked by user93021 on March 8, 2021
So lets say I’m making a map in Minecraft. No mods, no bukkit, no anything; just command blocks. and I have this one mob that I don’t want players to be able to kill.
Normally, I would simply give it a resistance potion so that it couldn’t be hurt, but I want other mobs to be able to hurt it, just not players.
Is it possible to make this mob unkillable by players, but still able to die by other mobs?
I'm sorry to tell you that unkillable mobs isn't possible without mods, even with mods they have a health bar, i dont think i've ever seen an unkillable mob, unless someone simply makes a "no health bar for mobs"
Answered by unknowne9867 on March 8, 2021
/summon ExampleMob ~ ~ ~ {Invulnerable:1}
Answered by user105135 on March 8, 2021
You could give the player a really strong weakness status effect if they're within melee range of the mob. This isn't exactly what you're looking for, since the player won't be able to kill any mobs within that region, even ones that they normally would elsewhere. If you're fine with that, then go right ahead.
If you also want it to be immune to player-shot arrows you could add
execute at @e[tag=enemy] run kill @e[type=arrow,distance=..2,nbt={pickup:1b}]
This only affects arrows shot by someone in survival or adventure mode, and not in creative. It also ignores arrows from entities like skeletons or pillagers.
Answered by Airtoum on March 8, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP