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.7.x 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
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
["red-arrow"]
["red-arrow-with-circle"]
["assembling-machine"]
["assembling-machine-1"]
["assembling-machine-2"]
["assembling-machine-3"]
["autoplace-control"]
coal
["copper-ore"]
["enemy-base"]
forest
["iron-ore"]
stone
["battery-equipment"]
["battery-equipment"]
["battery-mk2-equipment"]
beacon
["basic-beacon"]
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
container
["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
["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"]
["huge-explosion"]
["laser-bubble"]
["railgun-beam"]
fish
fish
["flame-thrower-explosion"]
["flame-thrower-explosion"]
["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"]
["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-equipment"]
["battery-mk2-equipment"]
["big-electric-pole"]
["biter-spawner"]
boiler
["burner-inserter"]
["burner-mining-drill"]
car
["cargo-wagon"]
coal
coin
computer
["copper-cable"]
["copper-ore"]
["copper-plate"]
["curved-rail"]
["diesel-locomotive"]
["electric-furnace"]
["electronic-circuit"]
["energy-shield-equipment"]
["energy-shield-mk2-equipment"]
["express-splitter"]
["express-transport-belt"]
["express-transport-belt-to-ground"]
["fast-inserter"]
["fast-splitter"]
["fast-transport-belt"]
["fast-transport-belt-to-ground"]
["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-provider"]
["logistic-chest-requester"]
["logistic-chest-storage"]
["logistic-robot"]
["long-handed-inserter"]
["medium-electric-pole"]
["medium-worm-turret"]
["night-vision-equipment"]
pipe
["pipe-to-ground"]
["player-port"]
pump
radar
["rail-signal"]
["raw-wood"]
["red-wire"]
["rocket-defense"]
["science-pack-1"]
["science-pack-2"]
["science-pack-3"]
["small-electric-pole"]
["small-lamp"]
["small-worm-turret"]
["smart-chest"]
["smart-inserter"]
["solar-panel"]
["solar-panel-equipment"]
["steam-engine"]
["steel-chest"]
["steel-furnace"]
["steel-plate"]
stone
["stone-brick"]
["stone-furnace"]
["straight-rail"]
substation
["train-stop"]
wall
wood
["wooden-chest"]
["item-entity"]
["item-on-ground"]
["item-group"]
combat
energy
logistics
other
production
lab
lab
lamp
["small-lamp"]
["land-mine"]
["land-mine"]
locomotive
["diesel-locomotive"]
["logistic-container"]
["logistic-chest-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"]
["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"]
coal
["copper-ore"]
dirt
["dry-trees"]
["enemy-base"]
grass
hills
["iron-ore"]
sand
stone
trees
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
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"]
["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-splitter"]
["basic-transport-belt"]
["basic-transport-belt-to-ground"]
["battery-equipment"]
["battery-mk2-equipment"]
["big-electric-pole"]
boiler
["burner-inserter"]
["burner-mining-drill"]
car
["cargo-wagon"]
["combat-shotgun"]
["copper-cable"]
["copper-plate"]
["curved-rail"]
["defender-capsule"]
["destroyer-capsule"]
["diesel-locomotive"]
["distractor-capsule"]
["effectivity-module"]
["effectivity-module-2"]
["effectivity-module-3"]
["electric-furnace"]
["electronic-circuit"]
["energy-shield-equipment"]
["energy-shield-mk2-equipment"]
["explosive-rocket"]
["express-splitter"]
["express-transport-belt"]
["express-transport-belt-to-ground"]
["fast-inserter"]
["fast-splitter"]
["fast-transport-belt"]
["fast-transport-belt-to-ground"]
["flame-thrower"]
["flame-thrower-ammo"]
["fusion-reactor-equipment"]
["green-wire"]
["gun-turret"]
["heavy-armor"]
["iron-axe"]
["iron-chest"]
["iron-gear-wheel"]
["iron-plate"]
["iron-stick"]
lab
["land-mine"]
["laser-turret"]
["logistic-chest-provider"]
["logistic-chest-requester"]
["logistic-chest-storage"]
["logistic-robot"]
["long-handed-inserter"]
["medium-electric-pole"]
["night-vision-equipment"]
["piercing-bullet-magazine"]
["piercing-shotgun-shell"]
pipe
["pipe-to-ground"]
pistol
["player-port"]
["poison-capsule"]
["power-armor"]
["power-armor-mk2"]
["productivity-module"]
["productivity-module-2"]
["productivity-module-3"]
pump
radar
["rail-signal"]
railgun
["railgun-dart"]
["red-wire"]
rocket
["rocket-defense"]
["rocket-launcher"]
["science-pack-1"]
["science-pack-2"]
["science-pack-3"]
shotgun
["shotgun-shell"]
["slowdown-capsule"]
["small-electric-pole"]
["small-lamp"]
["smart-chest"]
["smart-inserter"]
["solar-panel"]
["solar-panel-equipment"]
["speed-module"]
["speed-module-2"]
["speed-module-3"]
["steam-engine"]
["steel-axe"]
["steel-chest"]
["steel-furnace"]
["steel-plate"]
["stone-brick"]
["stone-furnace"]
["straight-rail"]
["submachine-gun"]
substation
["train-stop"]
wall
wood
["wooden-chest"]
["recipe-category"]
crafting
smelting
resource
coal
["copper-ore"]
["iron-ore"]
stone
["rocket-defense"]
["rocket-defense"]
["smart-container"]
["smart-chest"]
smoke
["poison-cloud"]
smoke
["smoke-fast"]
["solar-panel"]
["solar-panel"]
["solar-panel-equipment"]
["solar-panel-equipment"]
splitter
["basic-splitter"]
["express-splitter"]
["fast-splitter"]
sticker
["slowdown-sticker"]
technology
["advanced-chemistry"]
["advanced-electronics"]
["advanced-electronics-2"]
["advanced-material-processing"]
["advanced-material-processing-2"]
["alien-technology"]
["armor-making"]
["armor-making-2"]
["armor-making-3"]
["automated-rail-transportation"]
automation
["automation-2"]
["automation-3"]
automobilism
["basic-electric-discharge-defense-equipment"]
["basic-exoskeleton-equipment"]
["basic-laser-defense-equipment"]
["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"]
chemistry
["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"]
["effect-transmission"]
["effectivity-module"]
["effectivity-module-2"]
["effectivity-module-3"]
["electric-energy-accumulators-1"]
["electric-energy-distribution-1"]
["electric-energy-distribution-2"]
electronics
["energy-shield-equipment"]
["energy-shield-mk2-equipment"]
["explosive-rocketry"]
explosives
["flame-thrower"]
flammables
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"]
logistics
["logistics-2"]
["logistics-3"]
military
["military-2"]
["military-3"]
["military-4"]
modules
["night-vision-equipment"]
optics
["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"]
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"]
toolbelt
turrets
tile
deepwater
dirt
grass
hills
["out-of-map"]
sand
water
["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
["big-tree"]
["dry-tree"]
turret
["big-worm-turret"]
["medium-worm-turret"]
["small-worm-turret"]
unit
["big-biter"]
["medium-biter"]
["small-biter"]
["unit-spawner"]
["biter-spawner"]
wall
wall