God Mode (c_godmode)
dont-starve — Cheat Codes
Toggles invincibility, making your character immune to damage, hunger, and sanity loss.
Syntax
c_godmode()
Example
c_godmode() toggles god mode on; type again to turn off.
💡 Notes
Works in single-player only. Does not prevent death by drowning or being crushed by a tree. [verify] for all platforms.
🎯 Tips & Tricks
Use for boss fights
Enable god mode to practice boss patterns without dying, then disable for a fair fight.
Combine with teleport
Use c_godmode() with c_goto(x,y,z) to explore the map safely.
🔧 Troubleshooting
Still taking damage
Some environmental hazards (e.g., fire) may still hurt; use c_sethealth(9999) as backup.
Can't toggle off
Type c_godmode() again; if it doesn't work, reload the save.
⚠️ Common Mistakes
- Leaving god mode on during normal play
- Assuming it protects against all death types
👍 Pros
- Complete damage immunity
- No hunger or sanity drain
- Ideal for exploring caves
👎 Cons
- Removes survival challenge
- Can cause boredom
- Doesn't protect against scripted deaths