my custom item work but output power not change and its vanilla
my item.lua:
Code: Select all
--item.lua
local steam_engine = table.deepcopy(data.raw.item["steam-engine"])
steam_engine.name = "steam engine 2"
steam_engine.icon = "__base__/graphics/icons/steam-engine.png"
steam_engine.stack_size = 100
steam_engine.icon_size = 64
steam_engine.effectivity = 1
steam_engine.max_power_output = "2KW"
steam_engine.maximum_temperature = 500
steam_engine.fluid_usage_per_tick = 32
data:extend({
steam_engine
})
Code: Select all
--recipe.lua
local steamrecipe = table.deepcopy(data.raw.recipe["steam-engine"])
steamrecipe.name = "steam-engine-2"
steamrecipe.enabled = true
steamrecipe.ingredients = {{"steam-engin", 1}, {"iron-plate", 3}}
steamrecipe.results = {{name = "steam-engine-2", amount = 1}}
-- energy_required = 1
steamrecipe.category = "crafting-with-fluid"
steamrecipe.group = "production"
steamrecipe.subgroup = "energy"
steamrecipe.order = "a"
steamrecipe.max_power_output = "2KW"
steamrecipe.maximum_temperature = 500
steamrecipe.fluid_usage_per_tick = 32
data:extend({
steamrecipe
})
local steamregen = table.deepcopy(data.raw.generator["steam-engine"])
steamregen.name = "steam-engine-2"
steamregen.enabled = true
steamregen.ingredients = {{"steam-engin", 1}, {"iron-plate", 3}}
steamregen.results = {{name = "steam-engine-2", amount = 1}}
-- energy_required = 1
steamregen.category = "crafting-with-fluid"
steamregen.group = "production"
steamregen.subgroup = "energy"
steamregen.order = "a"
steamregen.max_power_output = "2KW"
steamregen.maximum_temperature = 500
steamregen.fluid_usage_per_tick = 32
data:extend({
steamregen
})
why my outpute power not change ? i change max temp but its not work and show a vanilla value pls help me