In this tutorial we will tell you everything you need to know about using cheat codes in Scrap Mechanic. You can use these cheats to set HP parameters, get ammunition, create different kits and get food and water in survival mode.

Cheat Codes in Scrap Mechanic

To start with, the first thing you need to do is right click Scrap Mechanic in your Steam library and select “Properties”. From there, go to Local Files and select Browse Local Files. Now browse to the next directory:

Survival> Script> Game> SurvivalGame.lua.

You need to open the file with Notepad ++. After opening the file, go to line 83 with “function SurvivalGame.client_onCreate (self)” and change g_survival then to if true then.

Then save the file and start the game. After starting Scrap Mechanic you can use cheats by pressing “/”. In the case of numbered items, you can also select a number.

Something like / food 45. Below is a complete list of all cheat commands that you can use in Scrap Mechanic:

/ “Gives ammo (default 40)”
/ spudgun “Gives spudgun”
/ gatling “Gives Gatling a potato gun”
/ shotgun “Gives Shotgun”
/ sunshake “Gives 1 sunshake”
/ baguette “Gives 1 rebirth baguette”
/ keycard “Gives 1 key card”
/ powercore “Gives 1 PowerCore”
/ components “Gives components (default 10)”
/ glowsticks “Give components (default 10)”
/ “Set toggle switch status”
/ god “no damage to mechanical characters”
/ respawn “Respawn in last bed (or crash site)”
/encrypt “Restrict interaction at all warehouses”
/decrypt “Unlimited interaction in all warehouses”
/ limited “Use limited inventory”
/ Unlimited “Use Unlimited inventory”
/ ambush “Begins” random “collision”
/ recreate “recreate the world”
/ timeof-day “Sets the time of day as a fraction (0.5 = mid-day)”.
/ timeprogress “Enables or disables time progress”
/ day “Disable time progression and set time to daytime”.
/ spawn “Create Units:” woc “,” tapebot “,” totebot “,” haybot “”
/ Harvestable “Create harvest:” tree “,” stone “”
/ cleardebug “Clear debug drawing objects”
/ export “exports plan $ SURVIVAL_DATA / LocalBlueprints / .blueprint”
/ import “Import plan $ SURVIVAL_DATA / LocalBlueprints / .blueprint”
/ starterkit “Create start kit”
/Mechanicstartkit “Create a starter kit to run on a mechanical station”
/ pipekit ” Create a pipe kit”
/ foodkit ” Create a food whale “
/ seedkit “caviar seed set”
/ die “Kill the player”
/ sethp “set hp value”
/ setwater “Set Water Player”
/ setfood “Setting the value of the player’s food”
/ “All enemy units will be aware of the player’s position.”
/ goto “Teleport to predefined position”
/ Start a level raid on a player’s position on a wave in hours.
/ stopraid “Cancel all incoming raids”
/disableraids “Disable raids if it’s true”
/ camera “Create SplineCamera tool”
/ printglobals “Print all global variables lua”
/ clearpathnodes “Clear all paths in the world”
/ enablepathpotatoes “Creates path nodes when potatoes hit the world and links to the previous node”.
These are all cheat codes that you can use in Scrap Mechanic.

Leave a comment