Code: Select all
data.raw["electric-pole"]["small-electric-pole"].light = {{
-- minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
color = {r=0.0, g=1.0, b=0.0}, }}
data.raw["player"]["player"].light = {{
-- minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
color = {r=1.0, g=0.0, b=0.0}, }}
Or should i add a some entity like "hidden-lamp" and add it to every electric pole?
Like how it is done in https://mods.factorio.com/mod/LightedPolesPlus and some other mods.
I probably can do little copypaste and rewrite, but i dont realy wont.
Or maybe i can add some parameters to "small-electric-pole" to make it light?