112 ratings
Don't Starve Cheats/ Console Commands
By Extra Farty
This guide will teach you how to use enable and use the command console.
Rate  
Favorite
Favorited
Unfavorite
Enabling the command console
To enable the command console you must go to the following location and edit the settings.
Documents > Klei > DoNotStarve and open settings.
When notepad opens eddit ENABLECONSOLE = false to ENABLECONSOLE = true.
(this can be found at the bottom in the [MISC] section)

MAKE SURE THAT YOU DONT HAVE THE GAME OPEN WHILE DOING THIS PART.
Opening the console
To open and close the console open Don't Starve, load your world and press the ~ key.
(it should be left to the 1 key and under Esc)
When you type in the command press Enter to execute code.
To remove the additional info that comes with the console press Ctrl+L.
Console in game.

DebugSpawn
Debug Spawn is used to spawn objects.
To use the command type DebugSpawn("?") in the console.
Instead of ? type in the prefab name of the object.
Instead of the in game name you need to type in the prefab name.
(in game and prefab name are not the same for some objects but the in game name works for the most time)
To find all of the prefab names open your steam folder >SteamApps>common>dont_starve>data>scripts>prefabs.
Here you will find all the objects you can spawn.
Example :
-to spawn a Treeguard you need to type :
DebugSpawn("leif")

Spawning multiple objects at once
To do this you will need to use :
for x = 1, ! do DebugSpawn("?") end

!-number of objects you want to spawn
?- prefab name of the object you want to spawn

Example:
-to spawn 20 meat you need to type:

for x = 1, 20 do DebugSpawn("meat") end

The object will spawn wherever your arrow is pointing.

As you can see you can use the console to spawn Unimplemented Characters.
Revealing the complete map
Enter following code: minimap = TheSim:FindFirstEntityWithTag("minimap") and execute the code after that type in : minimap.MiniMap:ShowArea(0,0,0,10000) and execute that code.

This command also works for caves.
Skipping days
To skip one day type in: GetClock():MakeNextDay()
To skip more days type in: for x = 1, ! do GetClock():MakeNextDay() end
Replace ! with the number of days you want to skip.
Skiping more days will cause a minor freeze and will affect your hunger/sanity.

Setting max hunger/sanity
For health type in: GetPlayer().components.health:SetMaxHealth(!)
Replace ! with the max number of health you want to have.
(You will need to get hit or eat something that adds health for to work)

For sanity type in: GetPlayer().components.sanity:SetMax(!)
Replace ! with the max number of sanity you want to have.
(Sanity changes instantly)
Pausing hunger
To pause hunger type in: GetPlayer().components.hunger:Pause(true)
With this command your hunger will never go down and you dont have to worry about the point of the game.
Tips and warnings
I do not recommend that you use these commands to often.They take away a lot of fun experiance and the game will start to get boring very fast.
Instead use these commands when you are in a tight spot and dont want to lose your world or want to do some testing in another save.
Finally , You can not get banned for using this.

If you need more help go to :
http://dont-starve-game.wikia.com/wiki/Console
65 Comments
< >
GlueBee Jun 26 @ 4:30am 
How do i give full health to another player via the console?
pincushion Jun 22 @ 8:46pm 
Ignore the troll. This guide is great, very helpful. Thank you :)
Awesomeguy002 Jun 7 @ 4:52am 
@DJ-PON3

Well, maybe some people dont know this stuff! C'mon, open your fucking eyes and stop being so goddamn ignorant.
DJ-PON3 May 23 @ 6:20am 
this is CRAP i already know this stuff i want stuff where you can edit monsters so they are stronger but you only gave me the basics that i already know. the only reason i came here was to tell you that you need to get more advanced stuff in another guide that you might "create".
wozzlewuzzle Mar 5 @ 5:39pm 
great to know!!!
[The Hermit-Spy] Fledgling Feb 10 @ 8:02pm 
I need help. Whenever I use the console, the HUD disappears. Do you know anything that might get it back?
lThanatos Jan 31 @ 1:03pm 
Good
Iron Toaster Jan 18 @ 9:18pm 
no matter what I try debug spawn wont work help
sloth_koala Dec 29, 2014 @ 8:39pm 
i dont know why but when i press u the command disappears , help?
Feariarch Nov 28, 2014 @ 6:09pm 
um any way to help clarify the skip days one?? i have no idea what that says and its too confusing for me