It has been suggested that this page be merged with SMP Server commands into with single- and multi-player modes unified, it makes no sense to maintain two separate pages. [discuss]
If this merge affects many pages or may potentially be controversial, do not merge the page until a consensus is reached.
Cheats mode is a feature that can be toggled in the World Options menu when generating a new world. When active, the player can press the chat key (default: T) and "chat". The player can also use commands such as /gamemode or /time set. However, the player cannot use multiplayer related commands such as /kick or /stop (as there are no other players or a server to control). Typing in "/" followed by Tab ↹ will give a list of commands.
Cheats
| Command | Description |
|---|---|
| /debug (start/stop) | Starts or stops debug profiling. |
| /defaultgamemode <mode> | Switches the world's default gamemode to Adventure, Creative, or Survival respectively. |
| /difficulty <new difficulty> | Switches the world's difficulty between Peaceful, Easy, Normal or Hard. |
| /gamemode <mode> [player] | Switches the current gamemode to Adventure, Creative, or Survival respectively. |
| /gamerule <rule name> <value> or /gamerule <rule name> | Allows the player to adjust several base settings. Rule Names: doFireTick, doMobLoot, doMobSpawning, doTileDrops, keepInventory, mobGriefing.
doFireTick = toggles fire spread on/off
doMobLoot = toggles drop items on/off (xp still drops)
doMobSpawning = toggles on/off mob spawning
doTileDrops = toggles farmed items (wheat, melon slices, etc.) drops on/off
(still drop seeds even if off)
keepInventory = toggles keeping your inventory when you die on/off
mobGriefing = toggles Creeper block damage and Enderman block pickup on/off
|
| /give <player> <block id> [amount] [data value] | Gives item/block of specified amount, using specified data value |
| /help [page:command name] or /? [page:command name] | Displays all available commands and how to use them. |
| /kill | Deals 1000 points (or 500 hearts) of damage, killing oneself instantly, and ignoring armor. Also adds message: "Ouch. That looks like it hurt." |
| /me <actiontext> | Sends a narrative message to the other players. |
| /publish | Opens your single-player game for LAN friends to join. |
| /say <message> | |
| /seed | Displays the current seed for the world |
| /spawnpoint or /spawnpoint <player> or /spawnpoint <player> <x> <y> <z> | Sets the spawnpoint of the target player to the current or entered destination. |
| /time <set:add> <value> | Sets time to specified integer - 0 is dawn, 6000 is midday, 12000 is dusk, and 18000 is midnight |
| /toggledownfall | Toggles rain/snow |
| /tp [target player] <destination player> or [target player] <x> <y> <z> | Teleports target player to entered destination. Valid entries range from -31999999 to 31999999. |
| /weather <clear>, <rain>, <thunder> | Can add a number afterwards to set the number of seconds it will stay like this. |
| /xp <amount> [player] | Grants experience of the specified amount, valid entries range from 1 to 5000. |
| /clear | Clears a players current inventory. |
History
((History||12w37a|The "clear" command was added.
| r | |||||
|---|---|---|---|---|---|
| 12w16a | Cheats mode was implemented. | ||||
| 12w24a | The "publish" command was added. | ||||
| 12w25a | Cheats could be turned on or off when opening a world to other players through LAN. | ||||
| 12w27a | The "debug" command was added. | ||||
| 12w32a | The commands "difficulty," "gamerule," "spawnpoint," and "weather" were added. | ||||