How to put everyone except myself into adventure mode? [duplicate]

How to put everyone except myself into adventure mode? [duplicate] - Happy men near tent in forest

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 to put everyone except myself into adventure mode? [duplicate] - Focused friends in casual clothes putting tent in green forest during weekends in nature
How to put everyone except myself into adventure mode? [duplicate] - Happy black man putting tent in forest
How to put everyone except myself into adventure mode? [duplicate] - Side view of cheerful female traveler in headband and casual clothes putting luggage in open trunk of modern car while spending summer weekend in countryside



How do you put someone in adventure mode?

How to Enter the Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we are going to change the gamemode to Adventure using the following command: /gamemode a. Once the cheat has been entered, the game mode will be updated to Adventure:




  • How 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