Cheats

Cheats mode is a feature avaible in 12w16a. When active, you can press the chat key (default; ) and "chat". You can also do some commands such as /gamemode or /time set. However, one 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 will give a list of commands.

Cheats
/Gamemode 1/0 (Switch to Creative/survival respectively)

/time set "time" (Sets time to specified integer - 0 is dawn, 6000 is midday, 12000 is dusk, and 18000 is midnight)

/give "item/block id" "amount" "data value" (Gives item/block of specified amount, using specified data value)

/xp "number" (Gives XP orbs of specified amount)

/kill (Deals 1000 points or 500 hearts of damage, killing oneself instantly, ignoring armor)

/toggledownfall (Toggle rain/snow)