How can I make members of a Team in Minecraft Invulnerable?
I have a small Java Server on 1.16.1
and use a Vanilla Tweaks datapack ("AFK Display")to have people that stand still for 5+ minutes be considered AFK. This datapack puts them in a team to tell them apart on the Tab list.
I have so far set their nametagVisibility
and collisionRule
to never
, so their nametag cannot be seen and they cannot be pushed around by other players.
Is there a way to prevent these players from taking damage at all? So they cannot even be hit around? Basically making them invulnerable?
Best Answer
I'm not sure if that is possible, but you could give them Resistance 255
, so if they get attacked, they cannot be moved or damaged. Regeneration can be added if needed.
Pictures about "How can I make members of a Team in Minecraft Invulnerable?"
What is the team command in Minecraft?
You can add, configure and remove teams using the /team command in Minecraft. This is a very useful command when you want to set up multiplayer PvP games. Once you have created your teams, use the /scoreboard command to manage your scoreboard, objectives and players in Minecraft.Why Sudo Is The Best Command in Minecraft
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Jopwell, Katerina Holmes, Kindel Media, Yan Krukov