Menu
Home
Top
Don't Starve Console Commands
Contents
Explore
Search

Maximum sanity

Console Command
Command ​GetPlayer().components.sanity:SetMax(value)​
Effect This command will change the Maximum Sanity of your Characters to the target value.
Example ​GetPlayer().components.sanity:SetMax(10)​
How to Enter Commands In Don't Starve, the command console is already enabled by default. To open the console, press the ~ key. This is usually under the Esc key and to the left of the 1 key. To hide the console menu press Ctrl + L.

Before entering any console commands, first run the command RunS​cript("console commands").

Some commands will require you to enter one or more parameters. These are usually inside the parentheses. You may need to enter a prefab code, or specify the quantity you want.
Category
DLC Required