Console & Admin Commands
Command | Syntax | Description |
---|---|---|
c_spawn("prefab",amount) | c_spawn("221",20) | Spawns amount of selected item under the mouse cursor. |
c_give("prefab",amount) | c_give("221",20) | Same as the above but only works with Backpacks and Items that can be stored in the inventory. |
c_sethealth(percent) | c_sethealth(1.00) = 100% | Sets your health to the provided percentage (Only fractional numbers). |
c_setsanity(percent) | c_setsanity(1.00) | Sets your sanity to the provided percentage. |
c_sethunger(percent) | c_sethunger(0.90) = 90% | Sets your hunger to the provided percentage. |
c_setmoisture(percent) | c_setmoisture(0.90) | Sets your hunger to the provided percentage. |
c_settemperature(degrees) | c_settemperature(1.00) | Sets your temperature to the provided percentage. |
c_godmode() | c_godmode() | Same as God Mode but also sets all your stats to full, even when turning it off. |
c_supergodmode() | c_supergodmode() | Same as God Mode but will set all your stats to full, even when it's disabled. |
c_speedmult(multiplier) | c_speedmult(1.0) | Modifies your walking/running speed to the value set in fractional numbers. |
Extra Useful Commands
Command | Syntax | Description |
---|---|---|
ThePlayer.components.builder:GiveAllRecipes() | N/A | Enables the Creative Mode which lets you craft anything without the resources required. |
ThePlayer.components.health:SetMaxHealth(value) | ThePlayer.components.health:SetMaxHealth(100) | Sets your character maximum health level to the provided value. |
ThePlayer.components.sanity:SetMax(value) | ThePlayer.components.sanity:SetMax(100) | Sets your character maximum sanity level to the provided value. |
ThePlayer.components.hunger:SetMax(value) | ThePlayer.components.hunger:SetMax(100) | Sets your character maximum hunger level to the provided value. |
ThePlayer.components.hunger:Pause(value) | ThePlayer.components.hunger:Pause(true) | Will stop your character from starving. |
ThePlayer.components.beaverness:SetPercent(value) | ThePlayer.components.beaverness:SetPercent(.01) | Turns Woodie into the Werebeaver. Default value for regular form: 1 |
Source: Don't Starve Together Wikia