Difference between revisions of "Admin Commands for Don't Starve Together"

From Nitradopedia EN
Jump to: navigation, search
Line 1: Line 1:
 
{{ADS-dst}}
 
{{ADS-dst}}
  
On this page we show you the commands you can use on Dont Starve Together:
+
On this page, show you the commands you can use on Don't Starve Together:
  
 
== Open the Console ==
 
== Open the Console ==
Line 7: Line 7:
 
To use commands, press the "~" key in your game. This opens the game console, where you can enter the commands.
 
To use commands, press the "~" key in your game. This opens the game console, where you can enter the commands.
  
 +
== Simple Commands ==
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Simple Commands
 
|+Simple Commands
Line 89: Line 90:
 
|c_speedmult(multiplier)
 
|c_speedmult(multiplier)
 
|}
 
|}
<span id="c_godmode"></span>
+
 
<span id="c_godmode"></span>
+
== Player Commands ==
 +
<span id="c_godmode"></span><span id="c_godmode"></span>
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Player Commands
 
|+Player Commands
Line 121: Line 123:
 
|Your Characters won't starve anymore.
 
|Your Characters won't starve anymore.
 
|GetPlayer().components.hunger:Pause(true)
 
|GetPlayer().components.hunger:Pause(true)
 +
|-
 +
|'''List all players with username and player number.'''
 +
|'''This seems to not work so well anymore. If you don't get a full list try this command, it will print the player list to the chat.'''
 +
|c_listallplayers()
 +
|-
 +
|'''Get a certain player'''
 +
|AllPlayers[1] will get ThePlayer if you are the host. Other players should have numbers as shown on the scoreboard (In certain situations, the number may be wrong. You can be more precise by using c_listallplayers() first to see the username and character for each player number.. Most of ThePlayer commands can be used with AllPlayers[number] instead of ThePlayer.
 +
|AllPlayers[number]
 +
|-
 +
|'''Apply a command to all players'''
 +
|Replace command with another command, using "v" instead of AllPlayers[number]. For example, "for k,v in pairs(AllPlayers) do c_move(v) end" will move all players to the mouse position.
 +
|for k,v in pairs(AllPlayers) do command end
 +
|-
 +
|'''Kill a player'''
 +
|They won't like it
 +
|AllPlayers[number]:PushEvent('death')
 +
|-
 +
|'''Resurrect a player'''
 +
|They will still resent you
 +
|AllPlayers[number]:PushEvent('respawnfromghost')
 +
|-
 +
|'''Give creative mode to a player'''
 +
|Gives Creative Mode to a player in specific
 +
|AllPlayers[number].components.builder:GiveAllRecipes(
 +
|-
 +
|'''Teleport to a player'''
 +
|Teleport to a player
 +
|c_goto(AllPlayers[number])
 
|-
 
|-
 
|'''Werebeaver'''
 
|'''Werebeaver'''

Revision as of 08:58, 16 July 2021

Dontstarve wiki.jpg
Rent your own prepaid Don't Starve server at nitrado.net

On this page, show you the commands you can use on Don't Starve Together:

Open the Console

To use commands, press the "~" key in your game. This opens the game console, where you can enter the commands.

Simple Commands

Simple Commands
Name Description Syntax
Spawn prefab Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor. c_spawn("prefab",amount)
Dive item Generates a quantity of selected "pre-made parts" in your inventory. It only works with backpacks and items that can be stored in inventory. c_give("prefab",amount)
Go Adventuring Gives the player a set of starting items. c_goadventuring()
Scenario Apply a scenario script to the selection and run it. c_doscenario(scenario)
Set Your Health Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_sethea​lth(percent)
Set Your Sanity Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_setsanit​y(percent)
Set Your Hunger Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_sethunger(pe​rcent)
Set Your Moisture Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_setmoisture(pe​rcent)
Temperature Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_settemperature(degrees)
God Mode It will no longer deplete your sanity, hunger, or health when attacked. You cannot use commands to change your stats while in God mode. When he is dead he will be resurrected (resuscitation via c_godmode () will not put him in godmode when he is resurrected). To disable Godmode, use the command again. c_godmode()
Super God Mode Like God mode, but it also sets all your stats to maximum even if you disable it. Similar to c_godmode (), it also revives you (reviving via c_supergodmode () does not put you in god mode when revived). To disable Godmode, use the command again. c_supergodmode()
Maintain Your Health Similar to Supergod mode, but constantly regenerating your health. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainhealth(ThePlayer)
Maintain Your Sanity Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainsanity(ThePlayer)
Maintain Your Hunger Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainhunger(ThePlayer)
Maintain Your Temperature Similar to Supergod mode but constantly regenerating your temperature. To cancel the process, enter c_cancelmaintasks (ThePlayer) c_maintaintemperature(ThePlayer)
Maintain Your Moisture Similar to Supergod mode, but constantly regenerating your moisture. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainmoisture(ThePlayer)
Maintain All Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainall(ThePlayer)
Mob Invisibility Prevent mobs from targeting the player in combat. It does not work in all circumstances. c_makeinvisible()
Set Your Running Speed The standard bonus running speed is 1.2, making you twice as fast, and at 12 or more you can easily walk through walls and "over" water. c_speedmult(multiplier)

Player Commands

Player Commands
Name Description Syntax
Hide and show HUD Hide or show (after hiding) the full HUD of the game. GetPlayer().HUD:Hide()

GetPlayer().HUD:Show()

Creative Mode You can craft everything for free. This includes items you never crafted before. After switching levels, you will need to re-enter the command. GetPlayer().components.builder:GiveAllRecipes()
Maximum Health Change the Maximum Health of your Characters ​GetPlayer().components.health:SetMaxHealth(value)
Maximum sanity Change the Maximum Sanity of your Characters ​GetPlayer().components.sanity:SetMax(value)
Maximum hunger Change the Maximum Hunger of your Characters GetPlayer().components.hunger:SetMax(value)
Pause hunger Your Characters won't starve anymore. GetPlayer().components.hunger:Pause(true)
List all players with username and player number. This seems to not work so well anymore. If you don't get a full list try this command, it will print the player list to the chat. c_listallplayers()
Get a certain player AllPlayers[1] will get ThePlayer if you are the host. Other players should have numbers as shown on the scoreboard (In certain situations, the number may be wrong. You can be more precise by using c_listallplayers() first to see the username and character for each player number.. Most of ThePlayer commands can be used with AllPlayers[number] instead of ThePlayer. AllPlayers[number]
Apply a command to all players Replace command with another command, using "v" instead of AllPlayers[number]. For example, "for k,v in pairs(AllPlayers) do c_move(v) end" will move all players to the mouse position. for k,v in pairs(AllPlayers) do command end
Kill a player They won't like it AllPlayers[number]:PushEvent('death')
Resurrect a player They will still resent you AllPlayers[number]:PushEvent('respawnfromghost')
Give creative mode to a player Gives Creative Mode to a player in specific AllPlayers[number].components.builder:GiveAllRecipes(
Teleport to a player Teleport to a player c_goto(AllPlayers[number])
Werebeaver Turn Woodie into the Werebeaver. GetPlayer().components.beaverness:SetPercent(1)