๐ฎ Buy Now โ Get 30% Off with KB30
How to Use Console Commands in Don’t Starve Together
Console commands in Don’t Starve Together are an excellent way to speed up gameplay, solve bugs, or experiment with mechanics. If you’re the server admin or playing solo, you can activate nearly any cheat or server-side function using the console.
To enable the console, press
~
(tilde) or'
on your keyboard. If it’s not opening, go to yoursettings.ini
file and changeconsole_enabled = false
toconsole_enabled = true
.
โก General Commands
Command | Description |
---|---|
c_spawn("prefab", amount) | Spawns any entity or item under the cursor. |
c_give("prefab", amount) | Gives an item directly into inventory. |
c_sethealth(0.9) | Sets health to 90%. Replace with your desired value. |
c_setsanity(1) | Sets sanity to 100%. Use decimals. |
c_sethunger(0.5) | Sets hunger to 50%. |
c_godmode() | Invincible and immune to stats loss. |
c_supergodmode() | Same as above, but also fills stats permanently. |
c_speedmult(2) | Run twice as fast. |
c_save() | Saves your current game. |
c_reset() | Rollbacks or reloads the world. |
๐ง Player Commands
Command | Effect |
---|---|
c_freecrafting() | Enables free crafting (creative mode). |
ThePlayer.components.health:SetMaxHealth(value) | Sets new max HP. |
ThePlayer.components.hunger:Pause(true) | Stops hunger decay. |
c_listallplayers() | Lists all connected players. |
AllPlayers[1]:PushEvent('death') | Kills a specific player. |
c_move(AllPlayers[2]) | Teleports another player to your cursor. |
๐ World & Map Commands
Command | Description |
---|---|
c_gonext("prefab") | Teleports you to the nearest prefab type. |
ConsoleWorldEntityUnderMouse():Remove() | Deletes object under cursor. |
c_revealmap() | Reveals your entire map. |
c_skip(1) | Skips a full day. Replace 1 with more. |
TheWorld:PushEvent("ms_setseason", "winter") | Forces a season to start. |
๐ Server Management
Command | Use |
---|---|
TheNet:Kick(userid) | Kicks a player by ID. |
c_connect("IP", port, "password") | Connects to another server. |
c_shutdown(true) | Safely shuts down your server. |
c_regenerateworld() | Completely regenerates the world. |
c_rollback(1) | Rolls the server back 1 save. |
๐งช Skill Tree and Misc Commands
Command | Description |
---|---|
TheSkillTree:AddSkillXP(10000, "character") | Adds skill points. |
TheScrapbookPartitions:DebugUnlockEverything() | Unlocks all scrapbook entries. |
c_select().Transform:SetScale(2,2,2) | Enlarges selected object. |
c_spawn("wormhole") | Spawns wormholes. |
c_announce("Server restarting in 1 minute!") | Sends message to all players. |
โ Tips
- Use arrow keys โ โ to cycle through past commands.
- Always test commands in a backup world first if you’re unsure.
- Combine multiple commands using Lua scripts for automation.
๐ Get Your DST Server Now โ Use Code KB30 for 30% Off
FAQ
How do I enable the console in Don’t Starve Together?
Edit the settings.ini
file and set console_enabled = true
.
Can I use these commands in multiplayer?
Yes, if you’re the host or server admin. Some commands are local only.
Whatโs the difference between c_godmode()
and c_supergodmode()
?c_godmode()
prevents damage, but c_supergodmode()
also locks your stats at maximum.
You can contact our 24/7 GGServers support anytime at: https://ggservers.com/billing/submitticket.php