Failed to load mods: Error while loading item prototype "Turbine-MK2" (item): Value must be a dictionary in property tree at ROOT.item.Turbine-MK2.icons.icon
Modifications: Turbine MK2
here my code:
Code: Select all
--item.lua
local turbin_MK2_item = table.deepcopy(data.raw["item"]["steam-turbine"])
turbin_MK2_item.name = "Turbine-MK2"
turbin_MK2_item.icons = {
icon = turbin_MK2_item.icon,
tint = {r=1,g=0.5,b=0.5,a=0.5}
}
--[[
local turbin_MK2_entity = table.deepcopy(data.raw.generator["steam-turbine"])
turbin_MK2_entity.name = "turbin_MK2_entity"
turbin_MK2_entity.fluid_usage_per_tick = 4
turbin_MK2_entity.burns_fluid = false
turbin_MK2_entity.scale_fluid_usage = false
turbin_MK2_entity.maximum_temperature = 500
turbin_MK2_entity.minable.result = "turbin_MK2"
turbin_MK2_entity.energy_source.usage_priority = "primary-output"
turbin_MK2_entity.fluid_box.filter = "steam"
turbin_MK2_entity.max_power_output = "40MW"
]]
local turbinMK2_recipe = table.deepcopy(data.raw["recipe"]["steam-turbine"])
turbinMK2_recipe.enabled = true
turbinMK2_recipe.name = "Turbine-MK2"
turbinMK2_recipe.ingredients = {
{type="item", name="iron-plate", amount=200},
{type="item", name="iron-gear-wheel", amount=200},
{type="item", name="steam-turbine", amount=5},
}
turbinMK2_recipe.result = "turbin_MK2"
data:extend{turbin_MK2_item,turbinMK2_recipe}
I tried many things but it always comes back to this error.