Here is a helpful list of cheats for indie sandbox game Minecraft.
To bring up your ‘Commands bar’, press the C key. You can change this to any key you want in settings. When the ‘Commands’ bar shows up, type any of the codes from the list below. You are only able to do this in single player. When creating a new world you must first enable cheats.
ascend – Moves you to the next platform above your current position.
atlantis <on/off> – Toggles ‘Atlantis Mode’.
biome – Tells you what biome you are at the moment.
bring <entity> – Brings an entity you want to you..
cannon <strength> – Shoots a primed TNT block to where you are pointing.
chest <drop/get/fill/swap> – Command the chests.
firedamage – Toggles player fire damage.
flammable <block> [catch/spread] – Sets the specified block at a specified flammability level.
fly <speed> – Allows the player to fly at a speed he chooses.
freeze – Freezes mobs so they can’t do anything.
goto <name> – Go to a waypoint.
grow – Grows all wheat and spruce trees on the map.
heal <health points> – Heals the player to chosen ammount of health points.
health <min/max/infinite> – Refills health to a chosen level.
help <command name> – Gives player more information on the chosen command.
home – Teleport to the spawn point.
infiniteitems – Toggles infinite items on/off.
instantkill – Instantly kills the animal or monster you hit.
instantmine – Toggles “instant mine” on/off.
instantplant – Instantly grows whatever you plant.
itemdamage – Toggles breakage or usage of an item on/off.
jump – Moves you from where you are to where you’re pointing.
clear – Clears the console.
clearwater – Toggles the clarity of the water on/off.
clone <amount> – Clones the block being pointed at.
confuse <distance> – Confuses mobs.
cyclepainting – Cycles through the painting you are pointing at.
damage – Toggles player damage on/off.
defuse – Defuse all nearby TNT.
descend – Moves you to the next platform below your current position.
destroy – Destroys the current item.
difficulty <0/1/2/3> – Toggles difficulty from 0 (Peaceful), 1 (Easy), 2 (Medium), and 3 (Hard).
dropstore – Transfers everything from your inventory to a chest, which is spawned next to you.
duplicate – Duplicates and drops the current item stack you’re holding.
explode – Sets off an explosion in your area.
falldamage – Toggles player fall damage on/off.
keepitems – Keeps your items after you die.
kill – Kills the current player.
killall <mob type> – Kills a specified type of mob.
killnpc <all/animal/monster> – Kills chosen living things nearby.
light – Toggles permanent lighting on/off.
listwaypoints – Lists all waypoints on the map.
longerlegs – Makes your legs longer.
mobdamage – Mobs can’t give you damage.
platform – Puts a glass block under your feet.
rename <command name> <newname> – Renames a command name to a new command name you choose.
ride – Allows you to ride the creature you are pointing at.
setspawn <x-coordinate> <y-coordinate> <z-coordinate> – Sets the spawn point to a specified coordinate.
setspeed <speed/reset> – Sets the speed in which the player moves to a specified speed/resets it.
skin <username> – Change the player skin to any Minecraft skin.
slippery <block name> – Makes the specified blocks slippery.
spawn <name/ID/random/list> <quantity> – Spawns an individual creature.
spawnportal – Spawns a portal nearby.
superheat – Turns all items into their smelted form (Example – Sand turns into glass).
tele <x-coordinate> <y-coordinate> <z-coordinate> – Teleport to a specified coordinate.
useportal – Automatically teleports you to the Nether. Use this command again to go back.
waterdamage – Toggles player water damage on/off.
weather <lightning/thunder/rain> – Changes the weather conditions.
world <load/save/seed/new/exit/list/backup> – Controls your game save from the ‘Command’ bar.