I have version 2.0.39, here is the code I'm using and the images
I am creating alternative recipes and have created the recipes for the other objects, but only with this one the problem occurs.Code: Select all
--- --- --- --- --- --- --- --- --- --- --- --- --- ---
---> data.lua
--- --- --- --- --- --- --- --- --- --- --- --- --- ---
local function DeepCopy(value)
    if type(value) ~= "table" then return value end
    local Output = {}
    for Key, Value in pairs(value) do
        Output[Key] = DeepCopy(Value)
    end
    return Output
end
local name = "iron-gear-wheel"
-- local name = "iron-plate"
local item = data.raw.item[name]
item = DeepCopy(item)
item.name = "zzzYAIM904-" .. item.name
item.localised_name = { "", {"item-name." .. name }}
local recipe = data.raw.recipe[name]
recipe = DeepCopy(recipe)
recipe.name = "zzzYAIM904-" .. recipe.name
recipe.localised_name = { "", {"item-name." .. name }}
recipe.category = nil
recipe.ingredients = { {
    type = "item",
    name = item.name,
    amount = 1
} }
recipe.results = { {
    type = "item",
    name = name,
    amount = 1000
} }
data:extend({ item, recipe })

