Scrap Mechanic Console Commands and Cheat Codes

Photo of author
By:
Updated:

Scrap Mechanic is an open-world sandbox survival game developed by Axolot Games and available on Steam for PC.

Players take on the role of a mechanic stranded on a remote agricultural planet after a catastrophic accident.

The game features both Creative Mode, which focuses on unrestricted building, and Survival Mode, where you’ll gather resources, explore the world, craft items, farm crops, and defend yourself against hostile robots.

Your main objective is to survive while building vehicles, machines, and other creations to overcome the planet’s challenges.

In this guide, you’ll find the complete Scrap Mechanic Console Commands List, including cheat codes for ammo, the Spud Gun, and many other useful commands.

How to enable cheats

  • Open Steam and right-click Scrap Mechanic.
  • Go to Properties → Local Files → Browse Local Files.
  • Open this path: Survival > Scripts > Game > SurvivalGame.lua.
  • Open the file in a text editor like Notepad++.
  • Find the line that checks survival cheats, usually if g_survival then, and change it to if true then.
  • Save the file and restart the game.

List of Scrap Mechanic Console Commands

Below is the complete list of Scrap Mechanic Console Commands and Cheat Codes.

Inventory & Items

CommandDescription
/ammo [amount]Give ammo (default: 40)
/components [amount]Give components (default: 10)
/glowsticks [amount]Give glowsticks (default: 10)
/spudgunGive the Spud Gun
/gatlingGive the Potato Gatling Gun
/shotgunGive the Fries Shotgun
/sunshakeGive 1 Sunshake
/baguetteGive 1 Revival Baguette
/keycardGive 1 Keycard
/powercoreGive 1 Power Core

Starter Kits

CommandDescription
/starterkitSpawn a starter kit
/mechanicstartkitSpawn a starter kit for starting at the mechanic station
/pipekitSpawn a pipe kit
/foodkitSpawn a food kit
/seedkitSpawn a seed kit

Player

CommandDescription
/godMechanic characters take no damage
/respawnRespawn at the last bed (or crash site)
/dieKill the player
/sethp <value>Set player HP
/setwater <value>Set player water
/setfood <value>Set player food
/goto <location>Teleport to a predefined position
/tumbleToggle tumble state

World & Time

CommandDescription
/timeofday <0.0-1.0>Set the time of day (e.g. 0.5 = midday)
/timeprogress <true/false>Enable or disable time progression
/daySet daytime and disable time progression
/recreateRecreate the world

Spawning

CommandDescription
/spawn <unit>Spawn a unit (woc, tapebot, totebot, haybot)
/harvestable <type>Spawn a harvestable (tree, stone)

Raids & Enemies

CommandDescription
/ambushStart a random encounter
/raid <hours>Start a raid at the player’s position
/stopraidCancel all incoming raids
/disableraids <true/false>Enable or disable raids
/aggroallMake all hostile units aware of the player’s position

Warehouse

CommandDescription
/encryptRestrict interactions in all warehouses
/decryptRemove warehouse interaction restrictions

Inventory Mode

CommandDescription
/limitedUse limited inventory
/unlimitedUse unlimited inventory

Blueprint

CommandDescription
/exportExport a blueprint to $SURVIVAL_DATA/LocalBlueprints/.blueprint
/importImport a blueprint from $SURVIVAL_DATA/LocalBlueprints/.blueprint

Debug & Developer

CommandDescription
/cameraSpawn a SplineCamera tool
/cleardebugClear debug draw objects
/printglobalsPrint all global Lua variables
/clearpathnodesClear all overworld path nodes
/enablepathpotatoesCreate and link path nodes where potatoes hit in the overworld

Suggestion

This article may contain affiliate links. If you use these links to purchase an item we may earn a commission. Thank you for your support.

Photo of author
Biswajit Nayak

Biswajit plays a variety of game genres, earning him the nickname "Spunky" from his friends. He spends most of his time exploring the worlds of Roblox and GTA 5, along with titles like Wuthering Waves and more.

Leave a Reply