Minecraft – Turn off editing in minecraft

minecraft-java-edition

In Minecraft, is there a way to turn off editing? In other words, is there a way to temporarily turn off placing or destroying blocks?

Best Answer

You can use commands in Minecraft to change the gamemode, assuming cheats are enabled for the world/server. You can temporarily enable cheats on single-player worlds by opening the game to LAN and turning Allow Cheats to ON.

/gamemode adventure or /gamemode spectator

Adventure mode allows interactions with mechanisms and trading, but stop blocks from being placed or destroyed. Spectator mode makes players invisible, disables inventory interaction, and other things.

Changes to the gamemode will save to the world.

MrLemon noted that it only applies to the user who ran the command. Use /gamemode <gamemode> [target] to target specific players. Using @a as the [target] will target all players.

Use /defaultgamemode <gamemode> to change the gamemode for new players entering the server.

Related Topic