data.lua:
local table = require('stdlib/stdlib/utils/table')
RECIPE {
type = "recipe",
name = "liquid-fuel",
enabled = true,
energy_required = 1,
ingredients = { { type = 'fluid', name = 'oxygen', amount = 4 } },
category = "combustion",
results = { { type = 'fluid', name = 'combustion-mixture1', amount = 40 } }
}
table.insert(data.raw.technology["intermetallics-mk01"].effects,
{
type = "unlock-recipe",
recipe = "power-house"
}
)
data.raw.fluid["combustion-mixture1"].fuel_value = "0.5MJ"
data.raw.fluid["combustion-mixture1"].auto_barrel = true
--Copy All Data
powerhouserecipe = data.raw["recipe"]["power-house"]
RECIPE(powerhouserecipe.name):remove_ingredient('gasturbinemk01')
powerhouserecipe.hide_from_player_crafting = false
powerhouseitem = data.raw["item"]["power-house"]
powerhouseentity = data.raw["assembling-machine"]["power-house"]
powerhouseentity.next_upgrade = nil
powerhouseentity.source_inventory_size = 1
powerhouseentity.result_inventory_size = 1
powerhouseentity.energy_source.fuel_category = "jerry"
powerhouseentity.energy_source.fuel_categories = nil
powerhouseentity.fixed_recipe = "liquid-fuel"
powerhouseentity.energy_usage = "20MW"
powerhouseentity.allowed_effects = { "pollution" }
data-final-fixes-lua:
powerhouserecipe.hidden = false
data:extend({ powerhouserecipe, powerhouseitem, powerhouseentity })
Maybe it helps. :D