How to put everyone except myself into adventure mode? [duplicate]
How can I use a command block to turn everyone (except myself) into adventure mode (gamemode 2)? Any command which does this would be awesome.
Best Answer
Try using
/gamemode adventure @a[name=!<player>]
What this exactly does is:
/gamemode adventure
- Sets gamemode to adventure.
@a[name=!<player>]
- Targets all players, except the name of the player specified there. The !
means "except".
If your Minecraft name for example was MrLuca, then the command would be:
/gamemode adventure @a[name=!MrLuca]
Pictures about "How to put everyone except myself into adventure mode? [duplicate]"
How do you put someone in adventure mode?
How to Enter the CommandHow to spawn the player anywhere - Adventure Mode - Clone Drone Level Editor Tutorial
More answers regarding how to put everyone except myself into adventure mode? [duplicate]
Answer 2
/gamemode adventure @a[rm=1]
Should do the trick. The rm
tag means everyone outside of the given radius. Since you will most probably be the only one that close to yourself, this should work. If not, just move to a different place.
Answer 3
Try this: /gamemode a @a[name=!Your_name_here]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kamaji Ogino, Kamaji Ogino, Kamaji Ogino, Gustavo Fring