Don't Starve Cheat Codes

6 cheat codes for Don't Starve on PC.

God mode (God Mode)

Console (~ key): infinite health, hunger and sanity until toggled off.

c_godmode()

Press ~ (tilde) in-game to open the Lua console. Don't Starve Together uses the same c_ commands.

Give item (Misc)

Spawns into inventory, e.g. c_give("log", 20). DST-compatible.

c_give("[prefab]", [count])

Press ~ (tilde) in-game to open the Lua console. Don't Starve Together uses the same c_ commands.

Spawn entity (Misc)

Spawns at cursor, e.g. c_spawn("beefalo", 1).

c_spawn("[prefab]", [count])

Press ~ (tilde) in-game to open the Lua console. Don't Starve Together uses the same c_ commands.

Set health (Misc)

Sets health to fraction of max (1 = full).

c_sethealth(1)

Press ~ (tilde) in-game to open the Lua console. Don't Starve Together uses the same c_ commands.

Reveal map (Misc)

Run after minimap = TheSim:FindFirstEntityWithTag("minimap") — reveals the whole map.

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

Press ~ (tilde) in-game to open the Lua console. Don't Starve Together uses the same c_ commands.

Skip day (Misc)

Time manipulation family for DS/DST console.

TheWorld:AdvanceInc(); TheWorld:SetDay(0)

Press ~ (tilde) in-game to open the Lua console. Don't Starve Together uses the same c_ commands.