Console commands
Every console command and what it does.
Open the console with F3. The host turns it on in Settings ▸ Gameplay ▸ Enable Console; other players can use it once the host gives them access with op.
<value> is needed, [value] can be left out. ; runs several commands in a row.
General
| Command | Does |
|---|---|
alias [name] [commands] | Makes a new command from others. alias day "sky.time 12; sky.weather clear" |
bind [key] [commands] | Runs commands when a key is pressed (console closed). bind F9 "sky.weather rain" |
bring <player name | all> | Brings a player (or everyone with 'bring all') to you (host only). |
cancel | Cancels commands that are waiting ('wait'). |
clear | Clears the console. |
copy | Copies the console text to the clipboard. |
echo [text] | Prints text. |
emote [emote | stop] | Plays an emote (everyone sees it). Without one it lists them; 'stop' ends the one playing. |
exec <file> | Runs a command file (one command per line, // comments). Looks in the save folder and StreamingAssets/Console. 'autoexec' runs at startup. |
find <text> | Lists GameObjects whose name contains the text. |
fly [on|off|toggle] [player name] | Lets a player fly and takes off, or lands them (you without a name). Works in survival too; there, double-tapping Jump also works until 'fly off'. In creative mode flying is always allowed. |
fps | Shows or hides the frame rate on screen. |
gc | Runs the garbage collector and unloads unused assets. |
help [group|command|search] | Lists commands. 'help sky' lists one group, 'help sky.time' explains one command. |
history [count|clear] | Shows the last commands (or 'history clear'). |
load [profile] [force] | Loads a saved game. Host only. |
log <message> | Writes a message to the game's log file (and the console). |
mem | Memory use. |
music [play|stop|resume] [track] | Shows what the music is doing, or 'music play [track]', 'music stop', 'music resume'. |
pos [player name] | Where the player (or another player) and the camera are. |
quit | Quits the game. |
reload | Reloads the active scene. |
save [profile] [force] | Saves the game. Host only. |
scene [name|index] | Shows the open scenes, or loads a scene by name or build index. |
scenes | Lists the scenes in the build. |
screenshot [scale=1] | Saves a screenshot (optionally 2-4x the resolution) to Pictures. |
sysinfo | Hardware, Unity version and memory. |
tickspeed [speed] | Shows or sets the world's tick speed (host): how fast days, weather, crops, animals, crafting, cooking, research, torches and regrowth run. Players stay at normal speed. 1 = normal, 0 = frozen, 10 = ten times as fast. |
tp <x y z | player name | object name | aim | up meters> | Teleports the player to a position, another player, a GameObject, or where the crosshair points ('tp aim'). |
unalias <name> | Removes an alias. |
unbind <key|all> | Removes a key bind ('unbind all' removes every one). |
unwatch <label> | Removes a watch ('unwatch all' removes every one). |
wait <seconds> | In a command line: waits before the rest runs. sky.weather rain; wait 10; sky.weather clear |
watch [label] <command> | Shows a command's output on screen, refreshed 4 times a second. watch time sky.time |
animals
| Command | Does |
|---|---|
animals.age <days> | Ages every herd within 200 m by some days (young grow up, old ones may die). |
animals.kill [radius] | Kills the spawned animals within a radius (default 30 m). |
animals.list [radius] | Herds near you: id, distance, members, spawned or not. |
animals.near [radius] | What the spawned animals near you are doing. |
animals.reset | Removes every animal and herd; the world gets stocked again as you explore. |
animals.spawn <species> [family|male|<animal>] | Spawns at the crosshair: a family, a lone male, or one animal by its name (for pigs: sow, boar, piglet, juvenile, old_sow, old_boar). |
animals.status | Wild animal population: herds, spawned animals, carcasses. |
animals.tame <familiarity> | Sets the familiarity (0-100) of the herds within 40 m (capped by their generation). |
animals.trough <fruit|veggies|wheat|meat|empty|water> [level] | Fills the nearest trough: fruit, veggies, wheat, meat or empty, level 1-3; 'water <0-3>' sets the nearest water trough's level. |
birds
| Command | Does |
|---|---|
birds.clear | Removes every bird (new flocks come back around the players). |
birds.spawn <species> [count] | Spawns a flock at the crosshair (in the nearest tree when the species perches). |
birds.status | Birds about now, by species and what they are doing, and the trees around you. |
bp
| Command | Does |
|---|---|
bp.list | Lists the recipes that need a blueprint and whether it has been found. |
bp.lock <recipeId|all> | Forgets a found blueprint again (host / offline; 'all' = every one). |
bp.unlock <recipeId|all> | Unlocks a recipe's blueprint for everyone ('all' = every one). |
console
| Command | Does |
|---|---|
console.unitylogs [on/off] | Shows the game's log messages in the console. |
creative
| Command | Does |
|---|---|
creative [on|off|toggle] [player name | all] | Creative mode: no damage or hunger, fly (double-tap Jump), build and craft for free. Without a state it toggles; without a name it's for you (host only). |
creative.list | Lists the players in creative mode (host only). |
effect
| Command | Does |
|---|---|
effect.add <effect> [seconds] [player name] | Gives a player a status effect (you without a name; seconds default to the effect's). |
effect.list [player name] | Shows a player's status effects and their time left (yours without a name). |
effect.remove <effect|all> [player name] | Ends a player's status effect ('all' ends every one; you without a name). |
effect.types | Lists every status effect. |
fish
| Command | Does |
|---|---|
fish.clear | Removes every fish (new ones swim in again around the players). |
fish.spawn <species> [count] | Spawns a school in the water at the crosshair. |
fish.status | Fish swimming now, by species, and the water you are in or above. |
go
| Command | Does |
|---|---|
go.active <name> [on|off] | Turns a GameObject on or off (toggles without on/off). |
go.destroy <name> | Destroys a GameObject. |
go.info <name> | Shows a GameObject's position, components and children. |
housing
| Command | Does |
|---|---|
housing.check | The "For rent" home whose door or sign you look at, with what each NPC kind still needs. |
housing.list | Every "For rent" sign: whether its rooms are a home, size, furniture, tenant. |
inv
| Command | Does |
|---|---|
inv.clear [player name] | Empties a player's inventory (yours without a name). |
inv.craft <recipeId> [times=1] | Crafts a recipe for the local player (uses the ingredients like the crafting panel). |
inv.drop [slot] [count=1] | Drops items from a slot (default: the held item). |
inv.give <itemId> [count=1] [player name] | Gives a player items (you without a name). |
inv.info [player name] | A player's id, network role and held item (yours without a name). |
inv.items [filter] | Lists every item, optionally filtered. |
inv.list [player name] | Shows a player's slots (yours without a name). |
inv.money [player name] | How much money (credit chips) a player has (yours without a name). |
inv.money.give <credits> [player name] | Gives a player credits as the fewest chips (you without a name). |
inv.money.pay <credits> [player name] | Takes credits from a player, giving change in chips (you without a name). |
inv.recipes [filter] | Lists the crafting recipes and whether you can craft them. |
inv.select <slot> | Selects a hotbar slot (1 = first). |
inv.take <itemId> [count=1|all] [player name] | Takes items from a player (you without a name). |
mods
| Command | Does |
|---|---|
mods | Lists the installed mods: on/off, version, hash, problems. |
mods.active | The mods running now, in load order. |
mods.declined [clear] | Hosts' client-side mods you turned down; 'mods.declined clear' has hosts offer them again. |
net
| Command | Does |
|---|---|
net.kick <player name | clientId> | Disconnects a player (host only). |
net.players | Lists the connected clients and their player objects. |
net.shutdown | Leaves the game (or stops hosting). |
net.status | Network role, connected players, round trip time. |
npc
| Command | Does |
|---|---|
npc.bring <name> | Moves a town NPC to the crosshair. |
npc.list | Every town NPC: kind, distance and home. |
npc.remove <name|all> | Removes a town NPC (or all of them) for good. |
npc.roster | Every defined NPC: role, and whether it is in this world (housed, wandering) or not. |
npc.spawn <npc> | Brings a defined NPC (each exists once) to the crosshair. 'npc.roster' lists them. |
op
| Command | Does |
|---|---|
deop <player name | clientId> | Takes a player's console access away (also players who aren't here). |
op <player name | clientId> | Gives a player console access: they run commands on the host, as themselves. Saved with the world. |
op.list | Lists the players with console access. |
player
| Command | Does |
|---|---|
player.bags | Lists the death bags in the world (host only). |
player.damage <amount> [player name] | Hurts a player (you without a name). |
player.feed [amount] [player name] | Feeds a player (fully without an amount; you without a name). |
player.heal [amount] [player name] | Heals a player (fully without an amount; you without a name). |
player.health [value] [player name] | Shows or sets a player's health (0 kills; you without a name). |
player.hunger [value] [player name] | Shows or sets a player's hunger (you without a name). |
player.kill [player name] | Kills a player (items drop in a death bag; you without a name). |
player.list | Lists the players in the game and where they are ('tp <name>' goes to one). |
player.respawn [player name] | Respawns a dead player at their bed, else a random place (you without a name). |
player.vitals [player name] | Shows a player's health and hunger (yours without a name). |
road
| Command | Does |
|---|---|
road.build [type|off] | Switches the road builder on with a road type (no item needed), or off. Left click sets points, clicking the last point again or Enter finishes, right click takes a point back. Points on a road join it. |
road.clear | Removes every road players built (world roads stay). |
road.list [radius|all] | Lists the roads near you (or all). |
road.remove [id] | Removes a road players built: the one with that id, or the nearest one within 10 m of you. World roads stay. |
road.types | Lists the road types. |
season
| Command | Does |
|---|---|
season [spring|summer|autumn|winter] [day] | Shows the season, or jumps to the start (or a day) of one: 'season autumn', 'season winter 4'. |
season.length [days] | Shows or sets the days in each season (host). |
settings
| Command | Does |
|---|---|
settings.list [filter] | Lists the player settings and their values. |
settings.reset | Puts every setting back to its default (keeps the resolution). |
settings.set <setting> [value] | Shows or changes a setting; it is applied and saved like in the settings menu. |
sky
| Command | Does |
|---|---|
sky.advance <hours> | Moves the clock forward by some hours (like sleeping). |
sky.daylength [dayMinutes] [nightMinutes] | Real minutes for the day (6-18) and the night (18-6). |
sky.flow [on|off] | Turns the running clock on or off. |
sky.lightning [aim|here] | Lightning strikes where the crosshair points (or 'here' at the player). Only on this machine. |
sky.random [on|off] | Turns the random weather cycle on or off. |
sky.status | Clock, weather and what the sky is doing right now. |
sky.time [hours|hh:mm] | Shows or sets the time of day: 'sky.time 13.5' or 'sky.time 13:30'. |
sky.weather [preset] [seconds=-1] [holdHours=-1] | Shows or changes the weather. 'sky.weather rain 0' changes at once; a third number holds it (hours). |
sky.weathers | Lists the weather presets. |
structure
| Command | Does |
|---|---|
structure.deselect | Clears the box to save. |
structure.list | Lists the saved structures. |
structure.load <name> [here] | Pastes a saved structure back into the world as real blocks and objects (to keep working on it), where it was saved, or with 'here' on the spot you look at. Cells that hold a block already are left alone. |
structure.pos1 [x y z] | Sets the first corner of the box to save: the block you look at (or a position). |
structure.pos2 [x y z] | Sets the second corner of the box to save: the block you look at (or a position). |
structure.save <name> [radius] | Saves what was built in the selected box (blocks, bodies, placed objects) as a structure, with where it stands. With a radius: a box reaching that far from you instead. Same name = replaced. |
structure.select <radius> | Selects a box reaching <radius> m from you in every direction. |
tax
| Command | Does |
|---|---|
tax.payday | Every tenant goes and pays its tax again (in working hours, 8-17), even if it paid today (host). |
tax.status | What each tax box holds and which tenants pay into which box (and how much a day). |
temperature
| Command | Does |
|---|---|
temperature | Shows your temperature: what you feel, your body, wetness and your clothes' warmth. |
temperature.set <°C> | Sets your body temperature, °C (37 = normal, below 36 cold, below 34.5 freezing). |
terrain
| Command | Does |
|---|---|
terrain.at [x z] | Ground height, biome and water at the player, or at x z. |
terrain.dig [radius=1.5] [force] | Digs a sphere where the crosshair points. 'force' ignores trees and water. |
terrain.fill [radius=1.5] [material] [force] | Fills a sphere where the crosshair points (material: the one hit, or a name / id). |
terrain.freezelod [on|off] | Stops the level of detail from following the camera. |
terrain.ground | Puts the player back on the ground above (or below) where they stand. |
terrain.hit | What the crosshair points at: position, material, biome, water, edited or not. |
terrain.materials | Lists the terrain materials (id, name, drop item, hardness). |
terrain.modified | How many chunks were dug or built (these are what saves store). |
terrain.paint <material> [radius=1.5] | Changes the material where the crosshair points. |
terrain.rebuild | Rebuilds every terrain mesh. |
terrain.regrow | Regrows now everything waiting to (picked berry bushes). Host or offline only. |
terrain.revertall | Undoes every dig and build (offline only; saves are not touched until you save). |
terrain.smooth [radius=2] | Smooths the ground where the crosshair points. |
terrain.status | Streaming, meshing and collider stats. |
terrain.view [mode] | Debug view: Normal, LodLevels, Normals or MaterialWeights. |