Here's my code adding the pipes (not the whole file):
Code: Select all
local pipe = util.table.deepcopy(data.raw["pipe"]["pipe"])
pipe.name = "rfp-pipe"
pipe.minable.result = "rfp-pipe"
pipe.fluid_box.minimum_temperature = 10000000
tintPictures(pipe.pictures, {r = 1, g = 0.5, b = 0, a = 1})
local pipeToGround = util.table.deepcopy(data.raw["pipe-to-ground"]["pipe-to-ground"])
pipeToGround.name = "rfp-pipe-to-ground"
pipeToGround.minable.result = "rfp-pipe-to-ground"
pipeToGround.fluid_box.minimum_temperature = 10000000
tintPictures(pipeToGround.pictures, {r = 1, g = 0.5, b = 0, a = 1})
tintPictures(mapMany(pipeToGround.fluid_box.pipe_covers, function (p) return p.layers; end), {r = 1, g = 0.5, b = 0, a = 1})
local pump = util.table.deepcopy(data.raw["pump"]["pump"])
pump.name = "rfp-pump"
pump.minable.result = "rfp-pump"
pump.fluid_box.minimum_temperature = 10000000
tintPictures(pump.animations, {r = 1, g = 0.5, b = 0, a = 1})
tintPictures(mapMany(pump.fluid_box.pipe_covers, function (p) return p.layers; end), {r = 1, g = 0.5, b = 0, a = 1})
data.raw["pipe"]["pipe"].fluid_box.maximum_temperature = 1500
data:extend({pipe, pipeToGround, pump})