Don't Starve Wiki
Advertisement
Don't Starve Wiki
Icon Books This article may contain instructional language and subjective recommendations. Readers should read the content carefully, and follow accordingly.
That's breaking the rules.

Webber

How To Access The Cheat Screen[]

To access the cheat screen is very simple. You do not need to download any programs "recommended" to do this, you just need a working mouse and a downloaded and bought version of Don't Starve. You only need to do these few steps once and throughout all the old versions and current to new versions, you do not need to ever do this step again.

  1. Hit Start Button on the bottom left side of the screen
  2. Click on "Documents" on the right side of the window that popped up.
  3. Double click on the "Klei" folder
  4. Double click on "DoNotStarve"
  5. Double click on "settings"
  6. Change ENABLECONSOLE = false to ENABLECONSOLE = true
  7. Launch Don't Starve

Different Cheat Codes[]

Cheat Screen

To access each cheat window, press the '  key (Or ~ key if on American keyboard) . A window as on the right should appear where you can input the code EXACTLY as you see it. Press enter once to enter the code. if the screen does not add any text, you put it in correctly, if the screen adds text, then you have to put it in again correctly.to exit the screen at any time, press the ~ key once again. To go back to a previous cheat, press the up arrow and change it to your liking or the correct way. Pressing ENTER will submit what you currently have. If ever you want to clear all the text once you exit the cheat box, press CTRL+L, this will clear up the entire text. When you open the box again, however, the text will reappear. These cheat boxes work on every Character and some cheats require two steps (AKA two different inputs). More will be described when necessary

To Spawn In Mobs[]

Steps:

  • Press the ~ to open the window
  • Type in the code EXACTLY as you see it
  • Press the ENTER key
  • Press the ~ to open the window
  • Type in the code changing prefab to the mob and amount to how many you want
  • Press the ENTER key
Cheat..

Info: This cheat spawns in the preferred amount of mobs you want, but some of them have a different name, such as the Treeguard being called the leif because in the coding of the game treeguard is mentioned as leif. If you want to know what all the names are for some mobs, you can check on the World editor screen where you can mouseover the few mobs listed. These mobs are the most common next to the birds. The other way is to visit this wiki and search up the specific types of animals or creatures from the mob page. To enter this code you need to type code one in first, then hit enter, and type in the second code, changing prefab to the mod and amount to how much you want.

Code 1: RunScript("consolecommands")

Code 2: c_spawn("prefab", amount)

Result: Spawns in the preferred mob and how many you wished to have

To Spawn In Items[]

Steps:

  • Find the name of the prefab(entity) you want to spawn (Console/Prefab List)
  • Press the ~ to open the window
  • Type in the code EXACTLY as you see it
  • Press the ENTER key
  • Press the ~ to open the window
  • Type in the code EXACTLY as you see it, replacing amount and "prefab" with the item you want
  • Press the ENTER key
Cheat..

Info: With this, you can have as much items as you want. Take note of your inventory space requirements. Any items you cannot carry will be dropped on the floor.

Do note that the prefab names are different from the names in-game. For example, if you want a Wood Wall, the prefab name is wall_wood_item.

Multiple prefab items cannot be spawned at one go. Each prefab item will need to have its own command called to spawn it.

Code 1: RunScript("consolecommands")

Code 2: c_give("prefab", amount)

Result: Gives you the preferred amount of items you put in.

To Activate Godmode[]

Steps:

  • Press the ~ to open the window
  • Type in the code EXACTLY as you see it
  • Press the ENTER key
Cheat..

Info: This is a very helpful code if you want to go into adventure mode and not really hack in any items or mods. All you do is type in the little code and your health never drops, your insanity stays the same (Now it won't deplete any if you eat a mushroom) and your hunger is set, even if you eat or don't eat! Do note that in Winter, you don't need any heatstones or hats and jackets! To enter this code you need to type code one in first, then hit enter.

Code: c_godmode() Result: Characters Sanity, Hunger and Health does not drop

To Get All The Building Recipes[]

Steps:

  • Press the ~ to open the window
  • Type in the code EXACTLY as you see it
  • Press the ENTER key
Cheat..

Info: As you might have guessed by the title, you will no longer have to run around finding lumber because you used up all your pine cones as fuel for those nights and then have a broken axe with no light while it gets dark. With this, you can make any craftable item any time, even if you have the supplies or not. Do note that if you have 2 lumber and you make a wooden plank, all lumber will be used, and if you have 10 lumber, only the required amount for the planks will be used. To enter this code you need to type code one in first, then hit enter.

Code: GetPlayer().components.builder:GiveAllRecipes()

Result: All craftable items are now unlocked and does not require anything to make it.

To Show The Entire Map[]

Cheat..
Cheat..

Steps:

  • Press the ~ to open the window
  • Type in the code EXACTLY as you see it
  • Press the ENTER key

Info: As the title suggests, you can now see the entire map.  This is very useful for finding touchstones and areas where you for Maxwell's Door and Wooden Things, along for the surrounding biomes and pig kings, gravestones, sinkholes and many other, such as of pigs. To enter this code you need to type code one in first, then hit enter.

Code:

GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)

Result: Reveals the entire map.
Code:

If above doesn't work, try the following (for all players):

local w,h = TheWorld.Map:GetSize();for _,v in pairs(AllPlayers) do for x=-w*4,w*4,35 do for y=-h*4,h*4,35 do v.player_classified.MapExplorer:RevealArea(x,0,y) end end end

Advertisement