
Don't Starve Together
The Ultimate Guide To Don't Starve Together Console Commands
#Getting Started with DST Console Commands
If you're tired of starving (or freezing, burning, losing your mindâyou know, the usual), Don't Starve Together console commands are your new best friend. These commands are especially powerful on dedicated servers or when youâre the admin of your groupâs chaos-filled world.
#How to Open the Console
Before anything, youâve gotta open the developer console:
Press the ~ key (just under Esc) on your keyboard.
If it doesnât open, go into your settings.ini file in the DoNotStarveTogether folder and make sure console_enabled = true.
In-game, hit Ctrl to switch between local and remote console modes (you want remote for server commands!).
#Must-Know Donât Starve Together Commands
These are the most popular and useful DST commands youâll want to memorize or bookmark for quick access.
#Survival Essentials
- c_godmode() = Makes you invincible (but you canât edit stats while it's active)
- c_supergodmode() = Same as god mode, but fills and locks stats at max
- c_maintainall(ThePlayer) = Constantly regenerates all stats
#Stat Management
- c_sethealth(0.9) = Set health to 90% (replace with decimal %)
- c_sethunger(1.0) = Set hunger to full
- c_setsanity(0.75) = Set sanity to 75%
#Spawning Items and Mobs
Want 10 spears? A herd of Beefalo? Or 50 spider queens (you monster)? Thereâs a command for that.
#Spawn Like a Pro
c_spawn("prefab_name", amount)
Examples:
â˘c_spawn("spear", 10)
â˘c_spawn("beefalo", 3)
â˘c_spawn("spiderqueen", 1)
#Add Items to Your Inventory
c_give("item_name", amount)
Use this instead of spawning if you want stuff to go directly into your backpack.
#Player & Admin Commands
Running a DST server? Here are the top commands to manage your world and players.
#Player Control Commands
c_listallplayers()
AllPlayers[1]:PushEvent('death') -- Kills the player
AllPlayers[1]:PushEvent('respawnfromghost') -- Resurrects player
c_despawn(AllPlayers[1]) -- Sends player back to character select
Want to teleport players or yourself?
c_move(AllPlayers[1]) -- Teleport them to you
c_goto(AllPlayers[1]) -- Teleport to them
#Weather, Time & Season Control
Nothing screams power like controlling time itself.
#Time Skipping Commands
- TheWorld:PushEvent("ms_nextcycle") = Skip to the next day
- c_skip(1) = Skip 1 full day
- LongUpdate(480) = Simulates an entire day
#Weather & Seasons
â˘TheWorld:PushEvent("ms_setseason", "winter") â Switch to winter
â˘TheWorld:PushEvent("ms_forceprecipitation") â Start rain
â˘TheWorld:PushEvent("ms_forceprecipitation", false) â Stop rain
â˘TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition()) â Summon lightning (great party trick)
#World & Server Management
#World Control
â˘c_reset() â Reloads the world
â˘c_regenerateworld() â Completely regenerates the map
â˘c_save() â Force-save the world
â˘c_shutdown(true) â Save & shut down server
â˘c_rollback(1) â Roll back 1 save
#Clean-Up & Deletion
â˘ConsoleWorldEntityUnderMouse():Remove() â Delete object under cursor
â˘for k,v in pairs(Ents) do if v.prefab == "name" then v:Remove() end end â Delete ALL of that prefab globally
#Extra Fun Commands
Want to get a little wacky? Check these out:
#Creative Shenanigans
⢠GetPlayer().components.builder:GiveAllRecipes() -- Free crafting mode
⢠c_speedmult(5) -- Run 5x faster
⢠ThePlayer.Transform:SetScale(2,2,2) -- Become a GIANT
#Map Reveal
for x=-1600,1600,35 do for y=-1600,1600,35 do ThePlayer.player_classified.MapExplorer:RevealArea(x,0,y) end end
Thatâs right, reveal the entire map. Instantly. Youâre welcome.
#Final Tips
Always test new commands in a backup world first. Some can crash your game or wipe inventories.
Use CTRL to swap between local and remote console modes.
Remote = Server, Local = Just you.
And donât forget: cheating is okay when itâs fun (or when Deerclops shows up uninvited).
#Ready to Try These Commands Yourself?
Jump into Donât Starve Together with your own custom server! Shockbyte has all of your Don't Starve Together Server Hosting needs covered! Set rules, tweak settings, and test every command in peace. Need help? Our support teamâs got your back 24/7. For extra information, why not visit our knowledgebase article!