Skip to main content
RustDocs

XOR Switch

Common

electric.xorswitch

An exclusive-or logic gate that allows electrical passthrough if ONLY ONE input receives power, passthrough amount is whichever single input is active. If BOTH inputs recieve power, passthrough will be zero.

Attributes

Id
1,293,102,274
ShortName
electric.xorswitch
MaxStackSize
5
Hidden
No
Flags
0
Category
16
CategoryName
Electrical
Rarity
1
RarityName
Common
DespawnRarityName
Common
DespawnTimeSeconds
300
QuickDespawn
No
Volume
0
BaseRadioactivity
0
Era
None
IsVehicleItem
No
OccupySlots
0
ApprovedSkinCount
0
MaxDraggable
0
Capacity
0
Weight
1
StorageSlots
0

ItemModsData

ItemModDeployable

entityPrefab_Path
assets/prefabs/deployable/playerioents/gates/xorswitch/xorswitch.entity.prefab
showCrosshair
No

ItemModEntity

entityPrefab_Path
assets/prefabs/tools/planner/building_planner.entity.prefab
playerOnlyEntity
Yes
destroyEntityWhenBroken
No
parentItemDefinition_ShortName
electric.xorswitch

Blueprint

Time
30
WorkbenchLevelRequired
1
AmountToCreate
1
ResearchCost
15
UserCraftable
Yes
IsResearchable
Yes
DefaultBlueprint
No
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

Electrical

PowerConsumption
0
Inputs
2
Outputs
1

ItemMods

ItemModDeployableItemBlueprintItemModEntity

TechTreePaths

TreeName
techtree
NodeID
83
CumulativeScrapCost
0
TreeName
techtree
NodeID
83
CumulativeScrapCost
180
TreeName
techtree
NodeID
83
CumulativeScrapCost
0
TreeName
techtree
NodeID
83
CumulativeScrapCost
0

RepairIngredients

ShortName
metal.fragments
DisplayName
Metal Fragments
Amount
20

World Entity Properties

Attributes

Type
XORSwitch
Path
assets/prefabs/deployable/playerioents/gates/xorswitch/xorswitch.entity.prefab
ID
1,074,446,568

Components

XORSwitchGroundWatchDestroyOnGroundMissing

Raiding Calculator

Cheapest Method (Hard Side)HARD SIDE
52Sulfur
3 × Cannonball
1 × Handmade Shell
1 × Pistol Bullet
Raid Tool / AmmoDamageQuantity NeededSulfur CostTime Required
MLRS Rocket
ammo.rocket.mlrs
387.510-
Molotov Cocktail
grenade.molotov
87.530-
40mm HE Grenade
ammo.grenadelauncher.he
62.540-
Scattershot
catapult.ammo.boulder
40.050-
Bee Catapult Bomb
catapult.ammo.bee
10.0200-
Bee Grenade
grenade.bee
10.0200-
Smoke Rocket WIP!!!!
ammo.rocket.smoke
5.0400-
Cannonball
cannonball
60.0460-
Torpedo
submarine.torpedo.straight
22.010120-
F1 Grenade
grenade.f1
57.54240-
Satchel Charge
explosive.satchel
275.01480-
Beancan Grenade
grenade.beancan
65.04480-
Firebomb
catapult.ammo.incendiary
112.52600-
Incendiary Rocket
ammo.rocket.fire
112.52600-
Propane Explosive Bomb
catapult.ammo.explosive
312.51900-
Survey Charge
surveycharge
14.015900-
High Velocity Rocket
ammo.rocket.hv
45.051,000-
Flashbang
grenade.flashbang
10.0201,000-
Rocket
ammo.rocket.basic
312.511,400-
Homing Missile
ammo.rocket.seeker
12.0171,700-
Timed Explosive Charge
explosive.timed
550.012,200-
Raw JSON
{
  "Id": 1293102274,
  "ShortName": "electric.xorswitch",
  "MaxStackSize": 5,
  "Hidden": false,
  "Flags": 0,
  "FlagNames": [],
  "Category": 16,
  "CategoryName": "Electrical",
  "Rarity": 1,
  "RarityName": "Common",
  "SteamDlcItem": null,
  "ItemMods": [
    "ItemModDeployable",
    "ItemBlueprint",
    "ItemModEntity"
  ],
  "DespawnRarityName": "Common",
  "DespawnTimeSeconds": 300,
  "QuickDespawn": false,
  "Volume": 0,
  "BaseRadioactivity": 0,
  "Era": "None",
  "IsVehicleItem": false,
  "VehicleCategory": null,
  "OccupySlots": "0",
  "ParentItem": null,
  "RedirectOf": null,
  "ApprovedSkinCount": 0,
  "ItemModsData": {
    "ItemModDeployable": {
      "entityPrefab_Path": "assets/prefabs/deployable/playerioents/gates/xorswitch/xorswitch.entity.prefab",
      "showCrosshair": false,
      "UnlockAchievement": ""
    },
    "ItemModEntity": {
      "entityPrefab_Path": "assets/prefabs/tools/planner/building_planner.entity.prefab",
      "defaultBone": "",
      "playerOnlyEntity": true,
      "destroyEntityWhenBroken": false,
      "parentItemDefinition_ShortName": "electric.xorswitch"
    }
  },
  "MaxDraggable": 0,
  "Capacity": 0,
  "Weight": 1,
  "Blueprint": {
    "Time": 30,
    "WorkbenchLevelRequired": 1,
    "AmountToCreate": 1,
    "ResearchCost": 15,
    "UserCraftable": true,
    "IsResearchable": true,
    "DefaultBlueprint": false,
    "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": {
    "PowerConsumption": 0,
    "Inputs": 2,
    "Outputs": 1
  },
  "TechTreePaths": [
    {
      "TreeName": "techtree",
      "NodeID": 83,
      "Inputs": [],
      "CumulativeScrapCost": 0
    },
    {
      "TreeName": "techtree",
      "NodeID": 83,
      "Inputs": [
        81
      ],
      "CumulativeScrapCost": 180
    },
    {
      "TreeName": "techtree",
      "NodeID": 83,
      "Inputs": [],
      "CumulativeScrapCost": 0
    },
    {
      "TreeName": "techtree",
      "NodeID": 83,
      "Inputs": [],
      "CumulativeScrapCost": 0
    }
  ],
  "Armor": null,
  "Recipe": null,
  "WeaponMod": null,
  "StorageSlots": 0,
  "RepairIngredients": [
    {
      "ShortName": "metal.fragments",
      "DisplayName": "Metal Fragments",
      "Amount": 20
    }
  ]
}