Data.raw
What is this page - Examples
This is a listing of what is accessible from the data.raw table in Factorio as of 0.8.8 and how to use it. As such this should also be a table of all the vanilla entities/items and all possible entity and item types (bold names) that can be used in prototyping another object. All bold names that are not listed after the colon are entity types (question mark means I'm not certain, but pretty sure): ammo, ammo-category, autoplace-control, damage-type, font, gui-style, item, item-group, map-settings, noise-layer, particle?, projectile?, rail-category, recipe, recipe-category, smoke?, technology, tile
Just a note here but: It is not currently possible to add a NEW type (bold name) to Factorio, without asking the developers to do it
Now, examples:
--add loot item to small biters local loot = { --define loot in local variable item = "alien-artifact", probability = 1, --[0-1) count_min = 1, count_max = 5 } if data.raw.unit["small-biter"].loot == nil then --check if small-biter has loot, if not make loot an empty table data.raw.unit["small-biter"].loot = {} end table.insert{data.raw.unit["small-biter"].loot, loot} --insert loot into loot table
--add loot to all enemy units (biters) that do not already drop loot for _, unit in pairs (data.raw.unit) do if not unit.loot then -- if unit.loot does not exist (aka is nil) unit.loot = {{ --create it, note the double {{ because loot is a table with multiple (possible) results item = "alien-artifact", probability = 1, --[0-1) count_min = 1, count_max = 5 }} end --note no else for if unit.loot does exist end
--increase player health :) data.raw.player.player.max_health=1337
Now, the LIST
data.raw - List
ambient-sound
after-the-crash anomaly first-light resource-deficiency transmit are-we-alone beyond-factory-outskirts gathering-horizon research-and-minerals solar-intervention the-oil-industry the-right-tools pollution wind1 wind2 wind3 swell-pad
accumulator
["basic-accumulator"]
["active-defense-equipment"]
["basic-electric-discharge-defense-equipment"] ["basic-laser-defense-equipment"]
ammo
["basic-bullet-magazine"] ["explosive-rocket"] ["flame-thrower-ammo"] ["piercing-bullet-magazine"] ["piercing-shotgun-shell"] ["railgun-dart"] rocket ["shotgun-shell"]
["ammo-category"]
biological bullet capsule ["combat-robot-laser"] electric ["flame-thrower"] ["laser-turret"] melee railgun rocket ["shotgun-shell"]
["ammo-turret"]
["gun-turret"]
armor
["basic-armor"] ["basic-modular-armor"] ["heavy-armor"] ["power-armor"] ["power-armor-mk2"]
arrow
["orange-arrow-with-circle"]
["assembling-machine"]
["assembling-machine-1"] ["assembling-machine-2"] ["assembling-machine-3"] ["chemical-plant"] ["oil-refinery"]
["autoplace-control"]
coal ["copper-ore"] ["crude-oil"] ["enemy-base"] ["iron-ore"] stone
["battery-equipment"]
["battery-equipment"] ["battery-mk2-equipment"]
beacon
["basic-beacon"]
blueprint
blueprint
boiler
boiler
capsule
["basic-electric-discharge-defense-remote"] ["basic-grenade"] ["defender-capsule"] ["destroyer-capsule"] ["distractor-capsule"] ["poison-capsule"] ["raw-fish"] ["slowdown-capsule"]
car
car
["cargo-wagon"]
["cargo-wagon"]
["combat-robot"]
defender destroyer distractor
["construction-robot"]
["construction-robot"]
container
["big-ship-wreck-1"] ["big-ship-wreck-2"] ["big-ship-wreck-3"] ["iron-chest"] ["space-module-wreck"] ["steel-chest"] ["wooden-chest"]
corpse
["acid-splash-purple"] ["big-biter-corpse"] ["big-remnants"] ["big-worm-corpse"] ["biter-spawner-corpse"] ["medium-biter-corpse"] ["medium-remnants"] ["medium-worm-corpse"] ["small-biter-corpse"] ["small-remnants"] ["small-worm-corpse"] ["wall-remnants"]
["damage-type"]
acid explosion fire laser physical poison
["deconstruction-item"]
["deconstruction-planner"]
decorative
["big-ship-wreck-grass"] ["brown-asterisk"] ["brown-cane-cluster"] ["brown-cane-single"] ["brown-coral-mini"] ["brown-fluff"] ["brown-fluff-dry"] garballo ["garballo-mini-dry"] ["green-asterisk"] ["green-bush-mini"] ["green-carpet-grass"] ["green-coral-mini"] ["green-hairy-grass"] ["green-pita"] ["green-pita-mini"] ["green-small-grass"] ["orange-coral-mini"] ["red-asterisk"] ["root-A"] ["root-B"] ["small-ship-wreck-grass"]
["electric-pole"]
["big-electric-pole"] ["medium-electric-pole"] ["small-electric-pole"] substation
["electric-turret"]
["laser-turret"]
["energy-shield-equipment"]
["energy-shield-equipment"] ["energy-shield-mk2-equipment"]
explosion
explosion explosion-gunshot explosion-gunshot-small explosion-hit big-explosion medium-explosion massive-explosion blood-explosion-small blood-explosion-big blood-explosion-huge water-splash laser-bubble railgun-beam
fish
fish
["flame-thrower-explosion"]
["flame-thrower-explosion"]
fluid
["crude-oil"] ["heavy-oil"] ["light-oil"] lubricant ["petroleum-gas"] ["sulfuric-acid"] water
["flying-text"]
["flying-text"]
font
default ["default-bold"] ["default-button"] ["default-frame"] ["default-game"] ["default-listbox"] ["default-semibold"] ["scenario-message-dialog"]
furnace
["electric-furnace"] ["steel-furnace"] ["stone-furnace"]
generator
["steam-engine"]
["generator-equipment"]
["fusion-reactor-equipment"]
ghost
ghost
["gui-style"]
default
gun
["combat-shotgun"] ["flame-thrower"] pistol railgun ["rocket-launcher"] shotgun ["submachine-gun"]
inserter
["basic-inserter"] ["burner-inserter"] ["fast-inserter"] ["long-handed-inserter"] ["smart-inserter"]
item
["advanced-circuit"] ["alien-artifact"] ["alien-science-pack"] ["assembling-machine-1"] ["assembling-machine-2"] ["assembling-machine-3"] ["basic-accumulator"] ["basic-beacon"] ["basic-electric-discharge-defense-equipment"] ["basic-exoskeleton-equipment"] ["basic-inserter"] ["basic-laser-defense-equipment"] ["basic-mining-drill"] ["basic-splitter"] ["basic-transport-belt"] ["basic-transport-belt-to-ground"] battery ["battery-equipment"] ["battery-mk2-equipment"] ["big-electric-pole"] ["biter-spawner"] boiler ["burner-inserter"] ["burner-mining-drill"] car ["cargo-wagon"] ["chemical-plant"] coal coin computer ["construction-robot"] ["copper-cable"] ["copper-ore"] ["copper-plate"] ["crude-oil-barrel"] ["curved-rail"] ["diesel-locomotive"] ["electric-engine-unit"] ["electric-furnace"] ["electronic-circuit"] ["empty-barrel"] ["energy-shield-equipment"] ["energy-shield-mk2-equipment"] ["engine-unit"] explosives ["express-splitter"] ["express-transport-belt"] ["express-transport-belt-to-ground"] ["fast-inserter"] ["fast-splitter"] ["fast-transport-belt"] ["fast-transport-belt-to-ground"] ["flying-robot-frame"] ["fusion-reactor-equipment"] ["green-wire"] ["gun-turret"] ["iron-chest"] ["iron-gear-wheel"] ["iron-ore"] ["iron-plate"] ["iron-stick"] lab ["land-mine"] ["laser-turret"] ["logistic-chest-active-provider"] ["logistic-chest-passive-provider"] ["logistic-chest-requester"] ["logistic-chest-storage"] ["logistic-robot"] ["long-handed-inserter"] ["medium-electric-pole"] ["medium-worm-turret"] ["night-vision-equipment"] ["offshore-pump"] ["oil-refinery"] pipe ["pipe-to-ground"] ["plastic-bar"] ["player-port"] ["processing-unit"] pumpjack radar ["rail-signal"] ["raw-wood"] ["red-wire"] roboport ["rocket-defense"] ["science-pack-1"] ["science-pack-2"] ["science-pack-3"] ["small-electric-pole"] ["small-lamp"] ["small-plane"] ["small-pump"] ["small-worm-turret"] ["smart-chest"] ["smart-inserter"] ["solar-panel"] ["solar-panel-equipment"] ["solid-fuel"] ["steam-engine"] ["steel-chest"] ["steel-furnace"] ["steel-plate"] stone ["stone-brick"] ["stone-furnace"] ["storage-tank"] ["straight-rail"] substation sulfur ["train-stop"] wall wood ["wooden-chest"]
["item-entity"]
["item-on-ground"]
["item-group"]
combat enemies environment ["intermediate-products"] logistics other production
["item-subgroup"]
ammo armor barrel belt capsule ["circuit-network"] corpses creatures ["defensive-structure"] enemies energy ["energy-pipe-distribution"] equipment ["extraction-machine"] fluid grass gun inserter ["intermediate-product"] ["logistic-network"] module other ["production-machine"] ["raw-material"] ["raw-resource"] remnants ["science-pack"] ["smelting-machine"] storage tool transport trees wrecks
lab
lab
lamp
["small-lamp"]
["land-mine"]
["land-mine"]
locomotive
["diesel-locomotive"]
["logistic-container"]
["logistic-chest-active-provider"] ["logistic-chest-passive-provider"] ["logistic-chest-requester"] ["logistic-chest-storage"]
["logistic-robot"]
["logistic-robot"]
["map-settings"]
["map-settings"]
market
market
["mining-drill"]
["basic-mining-drill"] ["burner-mining-drill"] pumpjack
["mining-tool"]
["iron-axe"] ["steel-axe"]
module
["effectivity-module"] ["effectivity-module-2"] ["effectivity-module-3"] ["productivity-module"] ["productivity-module-2"] ["productivity-module-3"] ["speed-module"] ["speed-module-2"] ["speed-module-3"]
["movement-bonus-equipment"]
["basic-exoskeleton-equipment"]
["night-vision-equipment"]
["night-vision-equipment"]
["noise-layer"]
["brown-cane"] coal ["copper-ore"] coral ["crude-oil"] dirt ["dirt-dark"] ["enemy-base"] fluff garballo ["garballo-mini"] grass ["grass-dry"] ["grass-medium"] grass1 grass2 ["iron-ore"] pita ["pita-mini"] sand ["sand-dark"] stone trees
["offshore-pump"]
["offshore-pump"]
particle
["coal-particle"] ["copper-ore-particle"] ["iron-ore-particle"] ["shell-particle"] ["stone-particle"] ["wooden-particle"]
pipe
pipe
["pipe-to-ground"]
["pipe-to-ground"]
player
player
["player-port"]
["player-port"]
projectile
["acid-projectile-purple"] ["basic-grenade"] ["blue-laser"] ["defender-capsule"] ["destroyer-capsule"] ["distractor-capsule"] ["explosive-rocket"] laser ["piercing-shotgun-pellet"] ["poison-capsule"] rocket ["shotgun-pellet"] ["slowdown-capsule"]
pump
["small-pump"]
radar
radar
rail
["curved-rail"] ["straight-rail"]
["rail-category"]
regular
["rail-remnants"]
["curved-rail-remnants"] ["straight-rail-remnants"]
["rail-signal"]
["rail-signal"]
recipe
["advanced-circuit"] ["advanced-oil-processing"] ["alien-science-pack"] ["assembling-machine-1"] ["assembling-machine-2"] ["assembling-machine-3"] ["basic-accumulator"] ["basic-armor"] ["basic-beacon"] ["basic-bullet-magazine"] ["basic-electric-discharge-defense-equipment"] ["basic-electric-discharge-defense-remote"] ["basic-exoskeleton-equipment"] ["basic-grenade"] ["basic-inserter"] ["basic-laser-defense-equipment"] ["basic-mining-drill"] ["basic-modular-armor"] ["basic-oil-processing"] ["basic-splitter"] ["basic-transport-belt"] ["basic-transport-belt-to-ground"] battery ["battery-equipment"] ["battery-mk2-equipment"] ["big-electric-pole"] blueprint boiler ["burner-inserter"] ["burner-mining-drill"] car ["cargo-wagon"] ["chemical-plant"] ["combat-shotgun"] ["construction-robot"] ["copper-cable"] ["copper-plate"] ["curved-rail"] ["deconstruction-planner"] ["defender-capsule"] ["destroyer-capsule"] ["diesel-locomotive"] ["distractor-capsule"] ["effectivity-module"] ["effectivity-module-2"] ["effectivity-module-3"] ["electric-engine-unit"] ["electric-furnace"] ["electronic-circuit"] ["empty-barrel"] ["empty-crude-oil-barrel"] ["energy-shield-equipment"] ["energy-shield-mk2-equipment"] ["engine-unit"] ["explosive-rocket"] explosives ["express-splitter"] ["express-transport-belt"] ["express-transport-belt-to-ground"] ["fast-inserter"] ["fast-splitter"] ["fast-transport-belt"] ["fast-transport-belt-to-ground"] ["fill-crude-oil-barrel"] ["flame-thrower"] ["flame-thrower-ammo"] ["flying-robot-frame"] ["fusion-reactor-equipment"] ["green-wire"] ["gun-turret"] ["heavy-armor"] ["heavy-oil-cracking"] ["iron-axe"] ["iron-chest"] ["iron-gear-wheel"] ["iron-plate"] ["iron-stick"] lab ["land-mine"] ["laser-turret"] ["light-oil-cracking"] ["logistic-chest-active-provider"] ["logistic-chest-passive-provider"] ["logistic-chest-requester"] ["logistic-chest-storage"] ["logistic-robot"] ["long-handed-inserter"] lubricant ["medium-electric-pole"] ["night-vision-equipment"] ["offshore-pump"] ["oil-refinery"] ["piercing-bullet-magazine"] ["piercing-shotgun-shell"] pipe ["pipe-to-ground"] pistol ["plastic-bar"] ["player-port"] ["poison-capsule"] ["power-armor"] ["power-armor-mk2"] ["processing-unit"] ["productivity-module"] ["productivity-module-2"] ["productivity-module-3"] pumpjack radar ["rail-signal"] railgun ["railgun-dart"] ["red-wire"] ["repair-pack"] roboport rocket ["rocket-defense"] ["rocket-launcher"] ["science-pack-1"] ["science-pack-2"] ["science-pack-3"] shotgun ["shotgun-shell"] ["slowdown-capsule"] ["small-electric-pole"] ["small-lamp"] ["small-plane"] ["small-pump"] ["smart-chest"] ["smart-inserter"] ["solar-panel"] ["solar-panel-equipment"] ["solid-fuel-from-heavy-oil"] ["solid-fuel-from-light-oil"] ["solid-fuel-from-petroleum-gas"] ["speed-module"] ["speed-module-2"] ["speed-module-3"] ["steam-engine"] ["steel-axe"] ["steel-chest"] ["steel-furnace"] ["steel-plate"] ["stone-brick"] ["stone-furnace"] ["storage-tank"] ["straight-rail"] ["submachine-gun"] substation sulfur ["sulfuric-acid"] ["train-stop"] wall wood ["wooden-chest"]
["recipe-category"]
["advanced-crafting"] chemistry crafting ["crafting-with-fluid"] ["oil-processing"] smelting
["repair-tool"]
["repair-pack"]
resource
coal ["copper-ore"] ["crude-oil"] ["iron-ore"] stone
["resource-category"]
["basic-fluid"] ["basic-solid"]
roboport
roboport
["rocket-defense"]
["rocket-defense"]
["simple-entity"]
["medium-ship-wreck"] ["small-ship-wreck"] ["stone-rock"]
["smart-container"]
["smart-chest"]
smoke
smoke smoke-fast smoke-train-stop smoke-building smoke-explosion-particle
["solar-panel"]
["solar-panel"]
["solar-panel-equipment"]
["solar-panel-equipment"]
splitter
["basic-splitter"] ["express-splitter"] ["fast-splitter"]
sticker
["slowdown-sticker"]
["storage-tank"]
["storage-tank"]
technology
["advanced-electronics"] ["advanced-electronics-2"] ["advanced-material-processing"] ["advanced-material-processing-2"] ["advanced-oil-processing"] ["alien-technology"] ["armor-making"] ["armor-making-2"] ["armor-making-3"] ["automated-construction"] ["automated-rail-transportation"] automation ["automation-2"] ["automation-3"] automobilism ["basic-electric-discharge-defense-equipment"] ["basic-exoskeleton-equipment"] ["basic-laser-defense-equipment"] battery ["battery-equipment"] ["battery-mk2-equipment"] ["bullet-damage-1"] ["bullet-damage-2"] ["bullet-damage-3"] ["bullet-damage-4"] ["bullet-damage-5"] ["bullet-damage-6"] ["bullet-speed-1"] ["bullet-speed-2"] ["bullet-speed-3"] ["bullet-speed-4"] ["bullet-speed-5"] ["bullet-speed-6"] ["character-logistic-slots-1"] ["character-logistic-slots-2"] ["character-logistic-slots-3"] ["character-logistic-slots-4"] ["combat-robot-damage-1"] ["combat-robot-damage-2"] ["combat-robot-damage-3"] ["combat-robot-damage-4"] ["combat-robot-damage-5"] ["combat-robotics"] ["combat-robotics-2"] ["combat-robotics-3"] ["construction-robotics"] ["effect-transmission"] ["effectivity-module"] ["effectivity-module-2"] ["effectivity-module-3"] ["electric-energy-accumulators-1"] ["electric-energy-distribution-1"] ["electric-energy-distribution-2"] ["electric-engine"] electronics ["energy-shield-equipment"] ["energy-shield-mk2-equipment"] engine ["explosive-rocketry"] explosives ["flame-thrower"] flammables ["fluid-handling"] flying ["follower-robot-count-1"] ["follower-robot-count-2"] ["follower-robot-count-3"] ["follower-robot-count-4"] ["follower-robot-count-5"] ["follower-robot-count-6"] ["follower-robot-count-7"] ["follower-robot-count-8"] ["follower-robot-count-9"] ["follower-robot-count-10"] ["follower-robot-count-11"] ["follower-robot-count-12"] ["follower-robot-count-13"] ["follower-robot-count-14"] ["follower-robot-count-15"] ["follower-robot-count-16"] ["follower-robot-count-17"] ["follower-robot-count-18"] ["follower-robot-count-19"] ["follower-robot-count-20"] ["fusion-reactor-equipment"] ["gun-turret-damage-1"] ["gun-turret-damage-2"] ["gun-turret-damage-3"] ["gun-turret-damage-4"] ["gun-turret-damage-5"] ["gun-turret-damage-6"] ["inserter-stack-size-bonus-1"] ["inserter-stack-size-bonus-2"] ["inserter-stack-size-bonus-3"] ["inserter-stack-size-bonus-4"] ["land-mine"] laser ["laser-turret-damage-1"] ["laser-turret-damage-2"] ["laser-turret-damage-3"] ["laser-turret-damage-4"] ["laser-turret-damage-5"] ["laser-turret-damage-6"] ["laser-turret-speed-1"] ["laser-turret-speed-2"] ["laser-turret-speed-3"] ["laser-turret-speed-4"] ["laser-turret-speed-5"] ["laser-turret-speed-6"] ["laser-turrets"] ["logistic-robot-speed-1"] ["logistic-robot-speed-2"] ["logistic-robot-speed-3"] ["logistic-robot-speed-4"] ["logistic-robot-speed-5"] ["logistic-robot-storage-1"] ["logistic-robot-storage-2"] ["logistic-robot-storage-3"] ["logistic-robotics"] ["logistic-system"] logistics ["logistics-2"] ["logistics-3"] military ["military-2"] ["military-3"] ["military-4"] modules ["night-vision-equipment"] ["oil-processing"] optics plastics ["power-armor"] ["power-armor-2"] ["productivity-module"] ["productivity-module-2"] ["productivity-module-3"] ["rail-signals"] railway ["research-effectivity-1"] ["research-effectivity-2"] ["research-effectivity-3"] ["research-effectivity-4"] robotics ["rocket-damage-1"] ["rocket-damage-2"] ["rocket-damage-3"] ["rocket-damage-4"] ["rocket-damage-5"] ["rocket-defense"] ["rocket-speed-1"] ["rocket-speed-2"] ["rocket-speed-3"] ["rocket-speed-4"] ["rocket-speed-5"] ["rocket-travel"] rocketry ["shotgun-shell-damage-1"] ["shotgun-shell-damage-2"] ["shotgun-shell-damage-3"] ["shotgun-shell-damage-4"] ["shotgun-shell-damage-5"] ["shotgun-shell-damage-6"] ["shotgun-shell-speed-1"] ["shotgun-shell-speed-2"] ["shotgun-shell-speed-3"] ["shotgun-shell-speed-4"] ["shotgun-shell-speed-5"] ["shotgun-shell-speed-6"] ["solar-energy"] ["solar-panel-equipment"] ["speed-module"] ["speed-module-2"] ["speed-module-3"] ["steel-processing"] ["sulfur-processing"] toolbelt turrets
tile
deepwater ["deepwater-green"] dirt ["dirt-dark"] grass ["grass-dry"] ["grass-medium"] ["out-of-map"] sand ["sand-dark"] water ["water-green"]
["train-stop"]
["train-stop"]
["transport-belt"]
["basic-transport-belt"] ["express-transport-belt"] ["fast-transport-belt"]
["transport-belt-to-ground"]
["basic-transport-belt-to-ground"] ["express-transport-belt-to-ground"] ["fast-transport-belt-to-ground"]
tree
["dark-green-thin-tree"] ["dark-green-tree"] ["dark-thin-tree"] ["dead-tree"] ["dry-tree"] ["green-coral"] ["green-thin-tree"] ["green-tree"] ["red-thin-tree"] ["red-tree"] ["root-tree"]
turret
["big-worm-turret"] ["medium-worm-turret"] ["small-worm-turret"]
unit
["big-biter"] ["medium-biter"] ["small-biter"]
["unit-spawner"]
["biter-spawner"]
wall
wall