All console commands from Don't Starve Together!


Don't Starve Together has a huge list of console commands that you can use to control your single player or multiplayer matches in cases where the server is yours. To use them, just open the console using the "~" (by default), type the codes below and hit Enter.

Attention: all characters such as quotes, commas and parentheses must be kept for the codes to work. Words such as "items", "quantity", "player" and "number" should be replaced by the respective values ​​explained below.



Your character commands

  • c_spawn("item or mob", quantity): spawns the item or mob in the desired amount at the place where the cursor is. Replace "item" with the name of the item you want and "quantity" with the number you want.
  • c_give("item or mob", quantity): same effect as code above, but makes the item appear in your inventory.
  • c_countprefabs ("item ou mob"): Shows how many items or mobs of a certain type are on your server at the moment.
  • c_godmode(): Triggers God Mode, not losing Health, Hunger or Sanity when attacked. Using the command again disables God Mode.
  • c_supergodmode (): Same thing as God Mode, but also regenerates all attributes.
  • c_goadventuring(): Provides a set of starter items to the character.
  • c_setheatlh (percentage): Sets your Health to the desired value. 1 = 100%. 0.9 = 90%, etc.
  • c_setsanity (percentage): Sets your Sanity to the desired value. 1 = 100%. 0.9 = 90%, etc.
  • c_sethunger (percentage):sets your Hunger to the desired value. 1 = 100%. 0.9 = 90%, etc.
  • c_setmoisture (percentage): Sets your Humidity to the desired value. 1=100%. 0.9 = 90%, etc.
  • c_setmperature (percentage): Sets your Humidity to the desired value. 1=100%. 0.9 = 90%, etc.
  • c_maintainhealth (player): Constantly regenerates the selected player's Health.
  • c_maintainsanity (player): Constantly regenerates the selected player's Sanity.
  • c_maintainhunger (player): Constantly regenerates the selected player's Hunger.
  • c_maintaintemperature (player): Constantly regenerates the Temperature of the selected player.
  • c_maintainmoisture (player): Constantly regenerates the selected player's Moisture.
  • c_maintainall (player): Constantly regenerates all attributes of the selected player.
  • c_cancelmaintaintasks (player): Cancel all commands that regenerate attributes (maintain).
  • c_speedmult (multiplier): Sets your movement speed. The default speed is 1, so if you replace "multiplier" with 2, it runs 2 times faster.
  • c_makeinvisible(): Makes you invisible to hostile mobs.
  • ThePlayer.components.health:SetMax(valor): Changes your character's maximum Health to the set value.
  • ThePlayer.components.sanity:SetMax(valor): Changes your character's maximum Sanity to the set value.
  • ThePlayer.components.hunger:SetMax(valor): Changes your character's maximum Hunger to the set value.
  • ThePlayer.components.hunger:Pause(true): prevents you from dying of hunger.
  • c_setbeaverness(value): Replace "value" with "1" to turn Woodie into Lobicastor. "0" transforms it to its original form.
  • c_gonext ("item ou mob"): Teleports you to the nearest selected item or mob.
  • c_freecrafting(): Starts Creative Mode, allowing you to unlock all recipes and be able to craft any item. To disable, just use the code again.

Commands applied to other players

  • c_select(Allplayers[number]): selects the player of the indicated number. With this command you can apply any of the above session codes to other players.
  • c_listallplayers(): lists all players, indicating their respective numbers.
  • for k,v in pairs(AllPlayers) do comando end: Replace "command" with any other command from this list to apply it to all players.
  • AllPlayers[number]:PushEvent('death'): Replace "number" with the desired player's number to kill him.
  • AllPlayers[nĂșmero]:PushEvent('respawnfromghost'): Replace "number" with the desired player's number to resurrect him.
  • c_move(AllPlayers[number]): Replace "number" with the desired player's number to teleport to you.
  • c_goto(AllPlayers[number]): Replace "number" with the desired player's number to teleport you to them.
  • AllPlayers[nĂșmero].components.builder:GiveAllRecipes(): Replace "number" with the desired player to enable Creative Mode for him (unlock all crafts).
  • AllPlayers[nĂșmero].components.inventory:DropEverything(): Replace "number" with the desired player to drop all your items on the ground.
  • c_despawn(AllPlayers[number]): Replace "number" with the desired player to return them to the character selection screen.

World Commands

  • c_skip (num): pula o dia.
  • TheWorld.net.components.clock:OnUpdate(16*30*valor): replace "value" with the number of days you want to skip. Example: 3.5 will advance 3 and a half days.
  • c_speedup(): speed up game time.
  • c_save(): saves the game at that specific time.
  • c_rollback(number): load the save with the desired number.
  • TheWorld:PushEvent("ms_setseason", "summer"): starts summer.
  • TheWorld:PushEvent("ms_setseason", "winter"): starts winter.
  • TheWorld:PushEvent("ms_setseason", "spring"): Spring begins.
  • TheWorld:PushEvent("ms_setseason", "autumn"): Autumn starts.
  • TheWorld:PushEvent("ms_setseasonlength", {season="summer", length=15}): sets the duration of the selected season, in days.
  • TheWorld:PushEvent("ms_forceprecipitation"): start to rain.
  • TheWorld:PushEvent("ms_forceprecipitation", false): for the rain.
  • TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition()): Summons a ray at the location where the cursor is.
  • c_spawn("shadowmeteor", 1): Summons a meteor at the location where the cursor is.
  • c_reset(): resets the world.
  • c_regenerateworld(): Returns the world to its original state.
  • c_announce("announcement"): Runs an ad on the server that can be read by all characters.

More must-see articles from Don't Starve:



  • Don't Starve: All Characters, Traits and Attributes!
  • Don't Starve Together: the best tips for beginners
  • The best characters from Don't Starve Together!
  • The best Don't Starve Together mods!
Audio Video All console commands from Don't Starve Together!
add a comment of All console commands from Don't Starve Together!
Comment sent successfully! We will review it in the next few hours.