|
|
Please note: This page only contains console commands for Don't Starve Together. For a list of console commands for the base game (or its DLCs), refer to Console Commands. |
[MISC]
section, and make sure you are having ENABLECONSOLE = true
under it. If it appears to be false
, change and save it.- You have to re-enter almost every command after loading a world.
- Lua supports variable numbers of arguments to functions, so if, for example, you only want to spawn one of a prefab, you can leave out the 'amount': 'c_spawn('beefalo')'.
- If you are not the host (or it's a dedicated server that you're an admin for), most commands need to be run remotely. Pressing ctrl with the console open switches to remote command mode. A few commands (such as revealing the map) are still done locally.
Simple commands
- Spawn prefab
- Give Item
- Scenario
- Health
- Sanity
- Hunger
- Moisture
- Temperature
- God Mode
![Don Don](/uploads/1/3/7/2/137291065/798941377.jpg)
- SuperGod Mode
- Set bonus running speed
Player commands
- Action Prediction
- Creative mode
- Maximum health
- Maximum sanity
- Maximum hunger
- Pause hunger
- Damage Multiplier
- Werebeaver
Other Player Commands
- List all players with username and player number.
- Get a certain player
- Apply a command to all players
- Move another player
- Kill a player
- Resurrect a player
- Teleport to a player
- Drop a player's inventory items
- Despawn a player's character (returns to selection screen for repicking)
World commands
- Teleport to Prefab
- Delete Item Under Mouse
- Reveal Map
- Skip day
- Skip time
- Skip time units and update
- Skip phase
- Set segments
Example:
- Set season segments
Example:
- Set season lengths
- Start Summer
- Start Winter
- Start Rain
- Stop Rain
- Do Lightning Strike
- Meteor Strike
- Activate all Events
- Measure Distance
Network/Server Commands
- Kick/Ban a player
[1] (KU_aabbccdd) Player1 <wolfgang>
- Temporarily Ban a player
- Connect to a server
- Reload the world
Don't Starve Together Characters
- Regenerate the world
- Regenerate a world shard
- Save the server
- Shut down the server
- Roll back the server
- Enable/Disable new player joining
- Make a server announcement (for dedicated server console)
Miscellaneous Commands
- Clear the morgue
- Count the number of something in the entire world, and return the value to your character
- Count the number of something in your world
- Spawn Wormhole
- Sadly no one line command, follow steps instead.
- Spawn wormhole 1 using this command: worm1 = c_spawn('wormhole')
- Spawn wormhole 2 using this command: worm2 = c_spawn('wormhole')
- Create connections forth: worm1.components.teleporter.targetTeleporter = worm2
- And back: worm2.components.teleporter.targetTeleporter = worm1
- DONE!
Don't Starve Together Wiki
- Spawn a Domesticated Beefalo