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

From Nitradopedia EN
Jump to: navigation, search
Line 10: Line 10:
 
|+Simple Commands
 
|+Simple Commands
 
!Name
 
!Name
!Command
 
 
!Description
 
!Description
 
!Syntax
 
!Syntax
 
|-
 
|-
 
|'''Spawn prefab'''
 
|'''Spawn prefab'''
|'''c_spawn'''
 
 
|Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor.
 
|Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor.
 
|c_spawn("prefab",amount)
 
|c_spawn("prefab",amount)
 
|-
 
|-
 
|'''Dive item'''
 
|'''Dive item'''
|'''c_give'''
 
 
|Generates a quantity of selected "pre-made parts" in your inventory. It only works with backpacks and items that can be stored in inventory.
 
|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)
 
|c_give("prefab",amount)
 
|-
 
|-
 
|'''Go Adventuring'''
 
|'''Go Adventuring'''
|'''c_goadventuring'''
 
 
|Gives the player a set of starting items.
 
|Gives the player a set of starting items.
 
|c_goadventuring()
 
|c_goadventuring()
 
|-
 
|-
 
|'''Scenario'''
 
|'''Scenario'''
|'''c_doscenario'''
 
 
|Apply a scenario script to the selection and run it.
 
|Apply a scenario script to the selection and run it.
 
|c_doscenario(scenario)
 
|c_doscenario(scenario)
 
|-
 
|-
 
|'''Set''' '''Your''' '''Health'''
 
|'''Set''' '''Your''' '''Health'''
|'''c_sethea​lth'''
 
 
|Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|c_sethea​lth(percent)
 
|c_sethea​lth(percent)
 
|-
 
|-
 
|'''Set Your Sanity'''
 
|'''Set Your Sanity'''
|'''c_setsanit​y'''
 
 
|Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|c_setsanit​y(percent)
 
|c_setsanit​y(percent)
 
|-
 
|-
 
|'''Set''' '''Your''' '''Hunger'''
 
|'''Set''' '''Your''' '''Hunger'''
|'''c_sethunger'''
 
 
|Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|c_sethunger(pe​rcent)
 
|c_sethunger(pe​rcent)
 
|-
 
|-
 
|'''Set Your Moisture'''
 
|'''Set Your Moisture'''
|'''c_setmoisture'''
 
 
|Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|c_setmoisture(pe​rcent)
 
|c_setmoisture(pe​rcent)
 
|-
 
|-
 
|'''Temperature'''
 
|'''Temperature'''
|'''c_settemperature'''
 
 
|Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%.
 
|c_settemperature(degrees)
 
|c_settemperature(degrees)
 
|-
 
|-
 
|'''God Mode'''
 
|'''God Mode'''
|'''c_godmode'''
 
 
|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.
 
|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()
 
|c_godmode()
 
|-
 
|-
 
|'''Super''' '''God Mode'''
 
|'''Super''' '''God Mode'''
|'''c_supergodmode'''
 
 
|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.
 
|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()
 
|c_supergodmode()
 
|-
 
|-
 
|'''Maintain Your Health'''
 
|'''Maintain Your Health'''
|'''c_maintainhealth'''
 
 
|Similar to Supergod mode, but constantly regenerating your health. To cancel the process, enter '''c_cancelmaintasks (ThePlayer)'''.
 
|Similar to Supergod mode, but constantly regenerating your health. To cancel the process, enter '''c_cancelmaintasks (ThePlayer)'''.
 
|c_maintainhealth(ThePlayer)
 
|c_maintainhealth(ThePlayer)
 
|-
 
|-
 
|'''Maintain Your Sanity'''
 
|'''Maintain Your Sanity'''
|'''c_maintainsanity'''
 
 
|Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|c_maintainsanity(ThePlayer)
 
|c_maintainsanity(ThePlayer)
 
|-
 
|-
 
|'''Maintain Your Hunger'''
 
|'''Maintain Your Hunger'''
|'''c_maintainhunger'''
 
 
|Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|c_maintainhunger(ThePlayer)
 
|c_maintainhunger(ThePlayer)
 
|-
 
|-
 
|'''Maintain Your Temperature'''
 
|'''Maintain Your Temperature'''
|'''c_maintaintemperature'''
 
 
|Similar to Supergod mode but constantly regenerating your temperature. To cancel the process, enter '''c_cancelmaintasks (ThePlayer)'''
 
|Similar to Supergod mode but constantly regenerating your temperature. To cancel the process, enter '''c_cancelmaintasks (ThePlayer)'''
 
|c_maintaintemperature(ThePlayer)
 
|c_maintaintemperature(ThePlayer)
 
|-
 
|-
 
|'''Maintain Your Moisture'''
 
|'''Maintain Your Moisture'''
|'''c_maintainmoisture'''
 
 
|Similar to Supergod mode, but constantly regenerating your moisture. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|Similar to Supergod mode, but constantly regenerating your moisture. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|c_maintainmoisture(ThePlayer)
 
|c_maintainmoisture(ThePlayer)
 
|-
 
|-
 
|'''Maintain All'''
 
|'''Maintain All'''
|'''c_maintainall'''
 
 
|Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 
|c_maintainall(ThePlayer)
 
|c_maintainall(ThePlayer)
 
|-
 
|-
 
|'''Mob Invisibility'''
 
|'''Mob Invisibility'''
|'''c_makeinvisible'''
 
 
|Prevent mobs from targeting the player in combat. It does not work in all circumstances.
 
|Prevent mobs from targeting the player in combat. It does not work in all circumstances.
 
|c_makeinvisible()
 
|c_makeinvisible()
 
|-
 
|-
 
|'''Set Your Running Speed'''
 
|'''Set Your Running Speed'''
|'''c_speedmult'''
 
 
|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.
 
|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)
 
|c_speedmult(multiplier)
 
|}
 
|}
 
<span id="c_godmode"></span>
 
<span id="c_godmode"></span>
 +
<span id="c_godmode"></span>
 +
{| class="wikitable"
 +
|+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)
 +
|-
 +
|'''Werebeaver'''
 +
|Turn Woodie into the Werebeaver.
 +
|GetPlayer().components.beaverness:SetPercent(1)
 +
|}
 
[[Category: Don't Starve Together]]
 
[[Category: Don't Starve Together]]
 
[[Category: Issue dontstarve]]
 
[[Category: Issue dontstarve]]
 
[[Category: Characteristic configuration]]
 
[[Category: Characteristic configuration]]

Revision as of 09:03, 15 July 2021

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

On this page we show you the commands you can use on Dont 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
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
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)
Werebeaver Turn Woodie into the Werebeaver. GetPlayer().components.beaverness:SetPercent(1)