Making player invincible to mobs, but not other players

Making player invincible to mobs, but not other players - Two Beach Volleyball Giving Fist Bump Gesture

Is there some way that I could make players invincible to mobs, but still be able to be harmed by players? I have already tried using this command, but it makes the player invincible to other players too. Is there anyway I can do this? Here is the command I tried:

/effect @a 11 240 372000





Pictures about "Making player invincible to mobs, but not other players"

Making player invincible to mobs, but not other players - Man Wearing Blue Shirt Looking on Ball
Making player invincible to mobs, but not other players - Athletes With Ball on the Background
Making player invincible to mobs, but not other players - Gathering Football Players



How do you make an invulnerable person in Minecraft?

If you need to do something extremely dangerous but don't want to die then just do /invincible command for let's say 100 minutes so you type in the command and boom your invincible for 100 minutes .

Do players count as mobs?

No. The player is a living entity, but not a mob. From a terminology standpoint, the word "mob" usually refers to hostile, non-player creatures. In Minecraft's source code (courtesy of MCP), we can see for ourselves how the game classifies different entities.



I Designed Custom Minecraft Bosses...




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: RODNAE Productions, Alexander Nadrilyanski, Pixabay, Pixabay