error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe
Posted: Sun Jul 19, 2020 12:30 am
Code: Select all
data:extend({
{
type = "recipe-category",
name = "deep-mining-1"
},
{
type = "recipe-category",
name = "deep-mining-2"
},
{
type = "recipe-category",
name = "deep-mining-3"
},
{
type = "recipe-category",
name = "deep-mining-4"
},
-- deep minning recipies for ores.
{
type = "recipe",
name = "deep-mining-1",
category = {"deep-mining-1", "advanced-crafting"},
enabled = true,
hidden = false,
icon = "__DeepMineALT__/graphics/icons/deep-mining-1.png",
order = "a",
icon_size = 64,
ingredients = {},
result =
{
{
name = "stone", probability = 1, count_min = 7, count_max = 10
},
{
name = "coal", probability = 1, count_min = 4, count_max = 7
},
{
name = "iron-ore", probability = 1, count_min = 4, count_max = 6
},
{
name = "copper-ore", probability = 1, count_min = 4, count_max = 6
}
},
energy_required = 300.0
},
{
type = "recipe",
name = "deep-mining-2",
category = {"deep-mining-2", "advanced-crafting"},
enabled = true,
hidden = false,
icon = "__DeepMineALT__/graphics/icons/deep-mining-2.png",
order = "a",
icon_size = 64,
ingredients = {},
result =
{
{
name = "stone", probability = 1, count_min = 10, count_max = 13
},
{
name = "coal", probability = 1, count_min = 7, count_max = 10
},
{
name = "iron-ore", probability = 1, count_min = 7, count_max = 9
},
{
name = "copper-ore", probability = 1, count_min = 7, count_max = 9
},
{
name = "uranium-ore", probability = 1, count_min = 1, count_max = 2
}
},
energy_required = 250.0
},
{
type = "recipe",
name = "deep-mining-3",
category = {"deep-mining-3", "advanced-crafting"},
enabled = true,
hidden = false,
icon = "__DeepMineALT__/graphics/icons/deep-mining-3.png",
order = "a",
icon_size = 64,
ingredients = {},
result =
{
{
name = "stone", probability = 1, count_min = 13, count_max = 16
},
{
name = "coal", probability = 1, count_min = 10, count_max = 13
},
{
name = "iron-ore", probability = 1, count_min = 10, count_max = 12
},
{
name = "copper-ore", probability = 1, count_min = 10, count_max = 12
},
{
name = "uranium-ore", probability = 1, count_min = 2, count_max = 3
}
},
energy_required = 200.0
},
{
type = "recipe",
name = "deep-mining-4",
category = {"deep-mining-4", "advanced-crafting"},
enabled = true,
hidden = false,
icon = "__DeepMineALT__/graphics/icons/deep-mining-4.png",
order = "a",
icon_size = 64,
ingredients = {},
result =
{
{
name = "stone", probability = 1, count_min = 16, count_max = 19
},
{
name = "coal", probability = 1, count_min = 13, count_max = 16
},
{
name = "iron-ore", probability = 1, count_min = 13, count_max = 15
},
{
name = "copper-ore", probability = 1, count_min = 13, count_max = 15
},
{
name = "uranium-ore", probability = 1, count_min = 3, count_max = 4
}
},
energy_required = 150.0
},
})