Skip to main content
RustDocs

Code Lock

lock.code

An electronic lock. Locked and unlocked with four-digit code.

Attributes

Id
1,159,991,980
ShortName
lock.code
MaxStackSize
10
Hidden
No
Flags
0
Category
1
CategoryName
Construction
Rarity
0
RarityName
None
DespawnRarityName
None
DespawnTimeSeconds
300
QuickDespawn
No
Volume
0
BaseRadioactivity
0
Era
None
IsVehicleItem
No
OccupySlots
0
ApprovedSkinCount
1
MaxDraggable
0
Capacity
0
Weight
0.40
StorageSlots
0

ItemModsData

ItemModDeployable

entityPrefab_Path
assets/prefabs/locks/keypad/lock.code.prefab
showCrosshair
No

ItemModEntity

entityPrefab_Path
assets/prefabs/tools/deploy (obsolete)/generic_deploy.prefab
playerOnlyEntity
No
destroyEntityWhenBroken
No
parentItemDefinition_ShortName
lock.code

Blueprint

Time
30
WorkbenchLevelRequired
0
AmountToCreate
1
ResearchCost
10
UserCraftable
Yes
IsResearchable
Yes
DefaultBlueprint
Yes
NeedsSteamItem
No
NeedsSteamDlc
No
ScrapFromRecycle
0

Ingredients

ShortName
metal.fragments
DisplayName
Metal Fragments
Amount
100

RecycleReturnsUnsafe

ShortName
metal.fragments
DisplayName
Metal Fragments
Amount
60
Chance
100

RecycleReturnsSafezone

ShortName
metal.fragments
DisplayName
Metal Fragments
Amount
40
Chance
100

ItemMods

ItemModDeployableItemBlueprintItemModEntity

RepairIngredients

ShortName
metal.fragments
DisplayName
Metal Fragments
Amount
20

World Entity Properties

Attributes

Type
CodeLock
Path
assets/prefabs/locks/keypad/lock.code.prefab
ID
3,518,824,735

Components

CodeLock
Raw JSON
{
  "Id": 1159991980,
  "ShortName": "lock.code",
  "MaxStackSize": 10,
  "Hidden": false,
  "Flags": 0,
  "FlagNames": [],
  "Category": 1,
  "CategoryName": "Construction",
  "Rarity": 0,
  "RarityName": "None",
  "SteamDlcItem": null,
  "ItemMods": [
    "ItemModDeployable",
    "ItemBlueprint",
    "ItemModEntity"
  ],
  "DespawnRarityName": "None",
  "DespawnTimeSeconds": 300,
  "QuickDespawn": false,
  "Volume": 0,
  "BaseRadioactivity": 0,
  "Era": "None",
  "IsVehicleItem": false,
  "VehicleCategory": null,
  "OccupySlots": "0",
  "ParentItem": null,
  "RedirectOf": null,
  "ApprovedSkinCount": 1,
  "ItemModsData": {
    "ItemModDeployable": {
      "entityPrefab_Path": "assets/prefabs/locks/keypad/lock.code.prefab",
      "showCrosshair": false,
      "UnlockAchievement": ""
    },
    "ItemModEntity": {
      "entityPrefab_Path": "assets/prefabs/tools/deploy (obsolete)/generic_deploy.prefab",
      "defaultBone": "",
      "playerOnlyEntity": false,
      "destroyEntityWhenBroken": false,
      "parentItemDefinition_ShortName": "lock.code"
    }
  },
  "MaxDraggable": 0,
  "Capacity": 0,
  "Weight": 0.4,
  "Blueprint": {
    "Time": 30,
    "WorkbenchLevelRequired": 0,
    "AmountToCreate": 1,
    "ResearchCost": 10,
    "UserCraftable": true,
    "IsResearchable": true,
    "DefaultBlueprint": true,
    "NeedsSteamItem": false,
    "NeedsSteamDlc": false,
    "RequireUnlockedItem": null,
    "AdditionalUnlocks": [],
    "ScrapFromRecycle": 0,
    "Ingredients": [
      {
        "ShortName": "metal.fragments",
        "DisplayName": "Metal Fragments",
        "Amount": 100
      }
    ],
    "RecycleReturnsUnsafe": [
      {
        "ShortName": "metal.fragments",
        "DisplayName": "Metal Fragments",
        "Amount": 60,
        "Chance": 100
      }
    ],
    "RecycleReturnsSafezone": [
      {
        "ShortName": "metal.fragments",
        "DisplayName": "Metal Fragments",
        "Amount": 40,
        "Chance": 100
      }
    ]
  },
  "Condition": null,
  "Combat": null,
  "Harvest": null,
  "Consumable": null,
  "Electrical": null,
  "TechTreePaths": null,
  "Armor": null,
  "Recipe": null,
  "WeaponMod": null,
  "StorageSlots": 0,
  "RepairIngredients": [
    {
      "ShortName": "metal.fragments",
      "DisplayName": "Metal Fragments",
      "Amount": 20
    }
  ]
}