IN-GAME CHAT COMMANDS
Scrap Mechanic Chat Commands
Scrap Mechanic has a chat console with commands for giving items, stopping raids, freeing a stuck character and changing the time of day. Most of the Survival ones only appear once the game is started in developer mode. This page lists all of them, grouped by the mode they belong to.
46 commands across 3 game modes
How to turn on Survival commands
A normal Survival session registers only the two commands a host needs. The rest are developer commands, and the game adds them to the chat console when it is started with the -dev launch option.
- Close the game, then open your Steam library.
- Right-click Scrap Mechanic and choose Properties.
- On the General tab, find the Launch Options box.
- Type -dev into the box and close the window.
- Start the game and load or create a Survival world.
Press Enter to open the chat box, type a command starting with a slash, then press Enter again. The console autocompletes command names and, where the game ships a list of values, the values too.
- /kick and /ban are the exception. They belong to whoever hosts the session and work without the launch option.
- Creative needs no launch option. Its commands are registered for everyone in the session as soon as the world loads, and the two that wipe a world are reserved for the host.
- The challenge commands only exist while you are building a challenge. They do not appear when you play one someone else published.
What the launch option changes about a world
The option does more than add commands to the console. A Survival world played with it on begins differently, and on a world you create while it is on the difference is hard to miss:
- The opening quest chain does not start. With the option on, the game never begins the tutorial quest when the loading screen lifts, so the Logbook stays empty and the crash site steps never appear.
- The opening cinematic is skipped, so the world simply starts.
- A character joining for the first time gets different starting equipment: a fuller set of tools and items instead of the two the normal opening gives you.
None of that is a fault in your save, but it does mean the story does not start itself. If you want the campaign as it was written, create that world without the option and keep the developer one for a save you are experimenting with.
Before you use them
These are development tools, not a difficulty setting. They can hand you items you have not unlocked, delete every shape in a Creative world, or leave a Survival save in a state the story was not written for. Copy your save folder first if the world matters to you.
The commands players look for most
Four commands account for most of the searches. Each one needs developer mode, and each one is listed again in the Survival table below with its arguments.
/disableraids
Example: /disableraids true
Turns raids off for the world. The argument is not optional: type true to stop raids from being scheduled, or false to allow them again. It does not cancel a raid that is already counting down, so pair it with /stopraid if a wave is already on its way.
/unstuck
Example: /unstuck
Moves your character free when it is wedged in terrain or inside a creation. It takes no arguments and only affects the player who types it, which makes it the safest command on this page.
/god
Example: /god
Stops mechanic characters from taking damage. It is a switch rather than a value, so typing it a second time puts damage back. Falls, bots and drowning all stop hurting while it is on.
/unlimited
Example: /unlimited
Switches the session to the unlimited inventory, the same one Creative uses, so every part is available without crafting. /limited puts the normal Survival inventory back.
How to read the tables
<name>- An argument in angle brackets has to be typed. The command does nothing useful without it.
[name]- An argument in square brackets can be left out.
- default
- Where the game uses a set value for a missing argument, that value is shown next to the argument.
- flips the setting when omitted
- Some arguments flip the current setting when you leave them out, so typing the command twice returns to where you started.
- accepts
- Where the game accepts a fixed set of words, those words are listed and the chat console autocompletes them.
- In-game description
- The game prints these descriptions in English regardless of the language you play in, so they are reproduced here word for word.
Survival commands
31Two of these belong to the host of the session. The other twenty-nine are developer commands and need the launch option above.
Chat commands for Survival commands| Command | Arguments | In-game description | Available to |
|---|
| /aggroall/aggroall | None | All hostile units will be made aware of the player's position | Developer mode |
|---|
| /ammo/ammo [quantity] | [quantity]intdefault: 100
| Give ammo (default 100) | Developer mode |
|---|
| /baguette/baguette | None | Give 1 revival baguette | Developer mode |
|---|
| /ban/ban <player name> | | Ban a player from server | Host only |
|---|
| /components/components [quantity] | | Give <quantity> components (default 10) | Developer mode |
|---|
| /die/die | None | Kill the player | Developer mode |
|---|
| /disableraids/disableraids <enabled> | | Disable raids if true | Developer mode |
|---|
| /exportmultishape/exportmultishape | None | Exports a blueprint shape file | Developer mode |
|---|
| /foodplease/foodplease | None | Give 5 of each edible type | Developer mode |
|---|
| /gatling/gatling | None | Give the potato gatling gun | Developer mode |
|---|
| /glowsticks/glowsticks [quantity] | | Give <quantity> components (default 10)The shipped help line repeats the wording of /components, default and all, while the command hands out glow sticks and uses the default shown in the argument column. | Developer mode |
|---|
| /god/god | None | Mechanic characters will take no damage | Developer mode |
|---|
| /keycard/keycard | None | Give 1 keycard | Developer mode |
|---|
| /kick/kick <player name> | | Kick a player from server | Host only |
|---|
| /limited/limited | None | Use the limited inventory | Developer mode |
|---|
| /noaggro/noaggro [enable] | [enable]boolflips the setting when omitted
| Toggles the player as a target | Developer mode |
|---|
| /powercore/powercore | None | Give 1 powercore | Developer mode |
|---|
| /seedsplease/seedsplease | None | Give 20 of each seed type and some soil | Developer mode |
|---|
| /setbreath/setbreath <breath> | | Set player breath value | Developer mode |
|---|
| /sethp/sethp <hp> | | Set player hp value | Developer mode |
|---|
| /shotgun/shotgun | None | Give the fries shotgun | Developer mode |
|---|
| /spawn/spawn [unitName] [amount] | [unitName]stringaccepts ball, blue, bt, c, cable, cablebot, f, farmbotand 33 moregreen, greentapebot, gtb, h, haybot, l, leaf, lootbot, m, miner, minerbot, red, redtapebot, rt, rtb, seedbot, t, tapebot, tb, toteblue, totebot, toteleaf, totered, toteyellow, trash, trashball, trashbot, woc, worm, yellow, yellowtapebot, yt, ytb[amount]intdefault: 1
| Spawn a unit: 'woc', 'tapebot', 'totebot', 'haybot' | Developer mode |
|---|
| /spudgun/spudgun | None | Give the spudgun | Developer mode |
|---|
| /starterkit/starterkit [name] | [name]stringdefault: startaccepts start, trashbot, mechanic, tutorial, pipe, food, seed
| Spawn a starter kit | Developer mode |
|---|
| /stopraid/stopraid | None | Cancel all incoming raids | Developer mode |
|---|
| /sunshake/sunshake | None | Give 1 sunshake | Developer mode |
|---|
| /timeofday/timeofday [timeOfDay] | | Sets the time of the day as a fraction (0.5=mid day) | Developer mode |
|---|
| /timeprogress/timeprogress [enabled] | | Enables or disables time progress | Developer mode |
|---|
| /tumble/tumble [enable] | [enable]boolflips the setting when omitted
| Set tumble state | Developer mode |
|---|
| /unlimited/unlimited | None | Use the unlimited inventory | Developer mode |
|---|
| /unstuck/unstuck | None | Unstuck the player | Developer mode |
|---|
Creative commands
12Creative registers these for every player in the session. The two that clear a world are held back for the host, and the clearing command has to be unlocked by the other one first.
Chat commands for Creative commands| Command | Arguments | In-game description | Available to |
|---|
| /aggroall/aggroall | None | All hostile units will be made aware of the player's position | Everyone |
|---|
| /allowclear/allowclear [enable] | [enable]boolflips the setting when omitted
| Enabled/Disables the /clear command | Host only |
|---|
| /clear/clear | None | Remove all shapes in the world. It must first be enabled with /allowclear | Host only |
|---|
| /day/day | None | Sets time of day to day | Everyone |
|---|
| /dropscrap/dropscrap | None | Toggles the scrap loot from Haybots | Everyone |
|---|
| /killall/killall | None | Kills all spawned units | Everyone |
|---|
| /night/night | None | Sets time of day to night | Everyone |
|---|
| /noaggro/noaggro [enable] | [enable]boolflips the setting when omitted
| Toggles the player as a target | Everyone |
|---|
| /noaggrocreations/noaggrocreations [enable] | [enable]boolflips the setting when omitted
| Toggles whether the Tapebots will shoot at creations | Everyone |
|---|
| /place/place <harvestable> | | Places a harvestable at the aimed position. Must be placed on the ground. The harvestable parameter controls which harvestable to place: 'stone', 'tree', 'birch', 'leafy', 'spruce', 'pine' | Everyone |
|---|
| /popcapsules/popcapsules [filter] | | Opens all capsules. An optional filter controls which type of capsules to open: 'bot', 'animal' | Everyone |
|---|
| /restrictions/restrictions [enable] | [enable]boolflips the setting when omitted
| Toggles restrictions on creations | Everyone |
|---|
Challenge builder commands
3These three exist inside the challenge builder and act on the challenge you are editing.
Chat commands for Challenge builder commands| Command | Arguments | In-game description | Available to |
|---|
| /save/save | None | Save the challenge | Challenge builder |
|---|
| /stop/stop | None | Stop the test | Challenge builder |
|---|
| /test/test | None | Test the challenge | Challenge builder |
|---|