i am new to factorio modding and was trying to create a recipe with cacalysts and run into the following error:
Failed to load mods: Error while loading recipe prototype "testrecipe-stone" (recipe): Key "icon" not found in property tree at ROOT.recipe.testrecipe-stone
As far as i understand the property "icon" is optional and i don't undestand why factorio tries to find an icon.
This is how my code looks like:
Code: Select all
data:extend({
{
ingredients = {
{ type= "item", name= "stone", amount=1.0, catalyst_amount=1.0}
},
name = "testrecipe-stone",
results = {
{type= "item", name = "copper-cable", probability=0.5, amount_min=1, amount_max=1},
{type= "item", name = "stone", amount=1.0, catalyst_amount= 1.0}
},
type = "recipe",
enabled = true,
}
})
Code: Select all
data:extend({
{
ingredients = {
{ type= "item", name= "stone", amount=1.0, catalyst_amount=1.0}
},
name = "testrecipe-stone",
results = {
{type= "item", name = "copper-cable", probability=0.5, amount_min=1, amount_max=1}
},
type = "recipe",
enabled = true,
}
})
Thanks