Commands ("cheats") require Cheats: ON at world creation or via temporary LAN session.
| Scenario | Java Edition | Bedrock Edition |
|---|---|---|
| New World | More World Options → Allow Cheats: ON | Cheats toggle ON |
| Existing World | Pause → Open to LAN → Allow Cheats: ON → Start LAN World (temporary) | Settings → Game → Cheats → Activate Cheats (permanent, disables achievements) |
/command arguments (Tab autocomplete works).| Command | Effect |
|---|---|
/gamemode <survival|creative|adventure|spectator> | Change game mode |
/give @s <item> [count] | Give yourself item |
/tp @s <x y z> or @p | Teleport |
/time set <day|night|noon|midnight|ticks> | Set time |
/difficulty <peaceful|easy|normal|hard> | Change difficulty |
/gamerule keepInventory true | Keep items on death |
/effect give @s minecraft:<effect> [duration] [amplifier] | Apply status effect |
Full syntax differs slightly (Java vs Bedrock). See Minecraft Wiki - Commands.