Console

The console enables players to use commands in-game.

## Summary

The commands are predefined already in the game, to change variables that are not accesible in-game or enable cheats, among other debug options.

Pressing the key [~] (Or equivalent. Depends on keyboard language) will open and close the console layout. The console is only available while playing on a loaded world.

Commands don't require and will **not** accept a [\] key before the actual command.

If a command is entered incorrectly or doesn't exist an error message will appear.
If the command is entered without a correct or accepted value, the console will not display any error and will wait for the next command, ignoring the last command introduced.

## Summary of commands

The table below summarizes available commands. For more information, click on the desired command.

Summary of Commands
 stats | Displays different statistics of the current game session. Read only.

## List of commands

Syntax

 x|y

### unlimited

Gives the player almost unlimited resources.
Doesn't affect the visual inventory.

Syntax
`unlimited <on|off>`
Arguments
*on*
Activates unlimited mode.
*off*
Dectivates unlimited mode.
**Not available. The command "unlimited" can't be switched off. After a save, the mode will be permanently saved on the game save.**
Result
Fails if the arguments are not specified correctly.
On activation gives the player almost unlimited resources of all types available.
Examples
To activate unlimited mode: `unlimited on`

### addtime

Adds hours to the world's game time (Day/night cycle).

Syntax
`addtime <*value*>`
Arguments
*value*
Must be between 0 and 3.402823E+38 (inclusive, accepts decimals and negative numbers).
Values will be converted to 24h time system.
Result
Fails if the arguments are not specified correctly.
Adds hours to the current world time.
Returns: `Added <*value*>h to world time. Current time is: <*value*> (Decimal)`
Examples
To add 2h to the world time: `addtime 2`

### settime

Sets the world's game time (Day/night cycle).

Syntax
`settime <*value*>`
Arguments
*value*
Must be between 0 and 3.402823E+38 (inclusive, accepts decimals and negative numbers).
Values will be converted to 24h time system.
Result
Fails if the arguments are not specified correctly.
Sets the hour of the current world time.
Returns: `Current time is: <*value*> (Decimal)`
Examples
To set 16:30h as the world time: `settime 16.5`

### subtracttime

Subtracts hours to the world's game time (Day/night cycle).

Syntax
`subtracttime <*value*>`
Arguments
*value*
Must be between 0 and 3.402823E+38 (inclusive, accepts decimals and negative numbers).
Values will be converted to 24h time system.
Result
Fails if the arguments are not specified correctly.
Subtracts hours to the current world time.
Returns: `Subtracted <*value*>h to world time. Current time is: <*value*> (Decimal)`
Examples
To subtract 10h to the world time: `subtracttime 10`

### locktime

Stops time progression (Day/night cycle).

Syntax
`locktime <on|off>`
Arguments
*on*
Stops time progression.
*off*
Resumes time progression.
Result
Fails if the arguments are not specified correctly.
Locks/Unlocks time progression.
If activated returns: `Time has been stopped at: <*value*> (Decimal)`
If deactivated returns: `Time has been resumed`
Examples
To lock current world time progression: `locktime on`

### stats

Displays different statistics of the current game session.
Read only.

Syntax
`stats <*stat*>`
Arguments
*stat*
Specifies the statistic that we want to display. Must be one of:
* `time` — returns current world time and if it's locked.

Result
Fails if the arguments are not specified correctly.
On success, returns the desired statistic.
Examples
To display world time: `stats time`
## History

* **Beta 0.11**:
	+ Added "addtime" command
	+ Added "settime" command
	+ Added "subtracttime" command
	+ Added "locktime" command
	+ Added "stats" command
* **Beta 0.10**:
	+ Added console
	+ Added "unlimited" command