Beginner · 1 block

Adventure mode entrance

Use a pressure plate to switch the entering player to Adventure mode and protect blocks in your map.

Choose in-game screen
Java Edition Bedrock Edition
Bedrock Edition (stable)

What you need

Before placing the blocks

  • 1 Command Block
  • 1 pressure plate
  • Hide the block beneath the entrance

Expected result

Test after setup

The player nearest the entrance switches to Adventure mode.

Configure one block at a time

Open the game and match these values

The copy button copies only Command Input. Choose every other value in the Command Block screen.

1

Game mode switch block

Place a pressure plate on the block above the Command Block so it runs as a player enters.

Command Block
Game mode switch block
Impulse
Unconditional
Needs Redstone
0
gamemode adventure @p
Previous Output
-
Block Type:
Impulse
Condition:
Unconditional
Redstone:
Needs Redstone

If it does not work

Check these four things first

  1. Cheats are enabled and you have Operator permission
  2. Needs Redstone or Always Active matches the example
  3. Chain Block arrows face the same direction and follow the previous block
  4. Read Previous Output to find the command that failed
Read the Command Block basics