www.thegamer.com

Don't Starve Together: All The Console Commands

That’s where console commands come in handy! This introductory list of commands will help you—and your friends—survive everything from an empty inventory to harsh winters.

The Command Console is usually enabled by default, so simply press the tilde “~” key to get started!

Continue scrolling to keep reading

Click the button below to start this article in quick view

Start Now

10 Keep Up Your Stats

A great place to start is making sure all of your stats—including health, sanity, and hunger—are in top condition. To set each individual stat to maximum, you can use this line of code:

GetPlayer().components.health:SetMax(value)

If you’d like to set a different stat, simply replace “health” above with “sanity” or “hunger.” Some folks would prefer to use a specific percentage, so in that case, this line’s your go-to:

c_sethealth(percent)

Just like the first line, replace “health” with “sanity” or “hunger” to set those separately, too. Make sure to write the “percent” here as a decimal, like 0.90 for 90%, as well.

9 Fill Your Pockets With Items

You can never have too many items, right? Or creatures, either—living among the Beefalos sounds pretty great! These lines of code will get you the items, props, or creatures you crave. That even means Tallbirds or Spider Queens, too!

RELATED: Don't Starve: 10 Best Recipes For The Crock Pot

To spawn a specific item, write up this line:

c_spawn("item", amount)

“Item” can be replaced with any animal, monster, character, item, or environment object in the game. “Amount” is simply how much of it you want. Just be careful not to spawn too many Terrorbeaks! You can also replace “spawn” with “give” if you’d like the items to show up in your inventory.

8 Turn On God Mode(s)

A true classic for any good console command system. Turning on God Mode will ensure your stats stay right where they are and you get reincarnated if you happen to die. Pretty neat!

Don’t Starve Together even comes with a Super God Mode that’ll bring your stats up to max, no matter what.

Each of these modes can be turned on separately using the lines below:

c_godmode()

c_supergodmode()

ThePlayer.components.builder:GiveAllRecipes()

That last line’s a little more complex-looking, but never fear—that’s Creative Mode! Just like any good crafting game, Creative Mode can come in handy when you want to craft just about anything.

7 Fellow Players

Sometimes, you need to hop across the map to your friends—or you just want to teleport them to you. To get started, you can grab a reference list of player’s numbers by typing in:

c_listallplayers()

RELATED: Ranked: Don't Starve Characters From Best To Worst

To move someone, make sure to replace “number” with the specific player’s number in the following line:

c_move(AllPlayers[number])

Or, if you’d prefer to teleport to them:

c_goto(AllPlayers[number])

Killing or resurrecting a player is also possible—just be wary of that kind of power! You never know when your friends could turn against you. To kill them:

AllPlayers[number]:PushEvent('death')

Or to bring them back and make amends:

AllPlayers[number]:PushEvent('respawnfromghost')

6 Time and Seasons

Didn’t we mention messing with the flow of time earlier? That’s why these commands exist!

Want to skip a whole day? Simply type:

TheWorld:PushEvent("ms_nextcycle")

Or maybe you’d prefer to start summer right away. That's possible with:

TheWorld:PushEvent("ms_setseason", "summer")

You can start winter, too, if that’s more your cup of tea. Simply replace “summer” with “winter” in the line above!

Or, if you’re looser with how far you’d like to skip, you can plug in:

TheWorld.net.components.clock:OnUpdate(16*30*days)

“Days” can be replaced with the number of days you’d like to skip. Be extra careful, though: too many skipped days can slow your game down.

5 What’s The Weather?

If you can change the fabric of time itself, then of course you can alter the weather, too. No more rain to worry about! Or lots of rain to deal with, if that’s more your speed.

Let’s set the temperature first:

c_settemperature(degrees)

“Degrees” works the same as the lines for stats, where you need to use a decimal like 0.90 for 90%.

You can start up some rain with this:

TheWorld:PushEvent("ms_forceprecipitation")

Or stop it immediately with this:

TheWorld:PushEvent("ms_forceprecipitation", false)

You could also cause a lightning strike!

TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())

Or a meteor strike, for those who prefer crazy weather:

c_spawn("shadowmeteor", 1)

4 Networking, Networking, Networking

Then there’s the more tech side of things that’ll allow you to remove objects from the world or change server properties.

RELATED: 10 Best Don't Starve Mods For Better Gameplay

These two lines will let you delete the item positioned under your mouse:

ConsoleWorldEntityUnderMouse():Remove()

c_select():Remove()

If you come to the unfortunate situation where you need to kick or ban a player from your server, these lines will help you out:

TheNet:Kick(userid)

TheNet:Ban(userid)

And if you'd like to close your server and ensure more players don't arrive during a game, this line will serve you well:

TheNet:SetAllowIncomingConnections(false)

Changing “false” to “true” will allow you to open your server up again.

3 Navigating the World

Every once in a while, you’ll need to make sure your server is running in tip-top shape. That’s where reloading comes in handy!

Regenerate the world with this:

c_regenerateworld()

Saving the server manually is pretty easy:

c_save()

But if you need to shut down the server, that’s simple, too:

c_shutdown(true)

Using “true” above allows you to save and exit. Setting it to “false” will make you exit without saving. Keep a close eye on which one you use!

If you want to jump back a few saves, that’s possible as well:

c_rollback(number)

“Number” can be replaced with the number of saves.

2 Even MORE Stats!

You thought we were all set with stats? Not quite—these lines are fun add-ons that you can use to move around quickly and fearlessly through the world of Don't Starve Together.

Pausing hunger is possible with this:

GetPlayer().components.hunger:Pause(true)

You can also make yourself a powerful opponent by upping your Damage Multiplier:

GetPlayer().components.combat.damagemultiplier = number

“Number” can be replaced with the amount of damage per hit.

What about changing your running speed so that you can quite literally walk on water? But of course!

c_speedmult(multiplier)

Normally, your character’s speed is 1, so have fun setting that up way higher than usual!

1 Miscellaneous Shenanigans

Finally, there are the commands that don’t quite fit under any other umbrella. These two commands are pretty useful when it comes to the more specific situations you could run into.

If you’d like to clear the Morgue, or the list of characters that have died, this line will help:

ErasePersistentString(“morgue”)

You’ll have to re-open the game afterward to see the changes to the Morgue.

And if you’re playing as Woodie and you want to immediately turn into the Werebeaver? Entirely possible with:

GetPlayer().components.beaverness:SetPercent(.01)

Simply change the “0.1” to “1” if you’d like to go back to your usual Woodie self!

NEXT: 10 Games To Play After Don't Starve

More in Lists