error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Place to get help with not working mods / modding interface.
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

ALTdeepmine error.png
ALTdeepmine error.png (32.95 KiB) Viewed 4355 times
^Difficulty normal: Value must be a string in property tree at ROOT.recipe

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
  },
})
[/size]
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by lovely_santa »

A recipe can only have one category:

Code: Select all

{
  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
},
So I expect you to have it in the recipe category "deep-mining-1" such that you define it as

Code: Select all

category = "deep-mining-1"
I assume by having the category "advanced-crafting" in your table that you also allow assembling machines to make it. So in that case, you would have to add the "deep-mining-1" category to the assembling machines.
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

that was a mini error on my part, updating post... sadly the error message remains :/
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

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",
  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",
  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",
  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",
  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
  },
  -- deep minning recipies for the miners.
  {
    type = "recipe",
    name = "deep-mine-MK1",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"stone-brick", 10},
      {"burner-mining-drill", 1},
	  {"electronic-circuit", 10},
    },
    result = "deep-mine-MK1",
    energy_required = 1.0
  },
  {
    type = "recipe",
    name = "deep-mine-MK2",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"inserter", 6},
      {"deep-mine-MK1", 2},
	  {"iron-gear-wheel", 10},
      {"underground-belt", 6},
    },
    result = "deep-mine-MK2",
    result_count = 1,
    energy_required = 1.2
  },
  {
    type = "recipe",
    name = "deep-mine-MK3",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK2", 2},
      {"fast-inserter", 6},
	  {"iron-gear-wheel", 20},
	  {"fast-underground-belt", 6},
	  {"electric-mining-drill", 2},
	},
    result = "deep-mine-MK3",
    result_count = 1,
    energy_required = 1.4
  },
  {
    type = "recipe",
    name = "deep-mine-MK4",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK3", 2},
	  {"concrete", 10},
	  {"engine-unit", 4},
	  {"iron-gear-wheel", 50},
	  {"assembling-machine-2", 4},
	},
    result = "deep-mine-MK4",
    result_count = 1,
    energy_required = 1.6
  },
  {
    type = "recipe",
    name = "deep-mine-MK5",
    category = "advanced-crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK4", 2},
      {"speed-module", 4},
	  {"iron-gear-wheel", 100},
      {"productivity-module", 4},
	  {"electric-engine-unit", 4},
	  {"express-underground-belt", 4},
	},
    result = "deep-mine-MK5",
    result_count = 1,
    energy_required = 1.8
  },
  {
    type = "recipe",
    name = "deep-mine-MK6",
    category = "advanced-crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK5", 2},
      {"speed-module-2", 4},
	  {"iron-gear-wheel", 200},
	  {"assembling-machine-3", 4},
	  {"stack-filter-inserter", 4},
      {"productivity-module-2", 4},
	},
    result = "deep-mine-MK6",
    result_count = 1,
    energy_required = 2.0
  },
  {
    type = "recipe",
    name = "deep-mine-MK7",
    category = "advanced-crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK6", 2},
      {"nuclear-reactor", 2},
      {"speed-module-3", 4},
      {"cliff-explosives", 4},
      {"effectivity-module-3", 4},
      {"productivity-module-3", 4},
      {"refined-hazard-concrete", 1000},
	},
    result = "deep-mine-MK7",
    result_count = 1,
    energy_required = 3.0
  },
})
[/size]
Last edited by demongo on Mon Jul 27, 2020 4:39 am, edited 1 time in total.
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

i have a building made specifically for the recipe a type of deep miner per say...
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3724
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by DaveMcW »

Post the new error message.
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

still same msg :/
error msg.png
error msg.png (33.71 KiB) Viewed 4282 times
i only have this mod enabled for simplification atm untill i can get this working...
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by orzelek »

I'm guessing a bit but it seems you are using result but giving it table as if you'd like to use results:
https://wiki.factorio.com/Prototype/Recipe

Error message gives node name that it can't read properly and says it expects a string there. Figuring out what the actual error is from it might be a bit tricky and requires some experience :D
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

hmm, this is being very annoying buy i am determined to solve it...
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

still same error... i even formatted the results the same as in the wiki...

Code: Select all

data:extend({
  {
    type = "recipe-category",
    name = "deep-mining"
  },
  -- deep minning recipies for ores.
  {
  type = "recipe",
  name = "deep-mining-1",
  category = "deep-mining",
  enabled = false,
  hidden = false,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-1.png",
  order = "a",
  icon_size = 64,
  ingredients = {},
  result =
	{
      {
        type = "item", name = "stone", count = 6
      },
      {
        type = "item", name = "coal", count = 4
      },
      {
        type = "item", name = "iron-ore", count = 3
      },
      {
        type = "item", name = "copper-ore", count = 3
      }
	},
    energy_required = 300.0
  },
  {
  type = "recipe",
  name = "deep-mining-2",
  category = "deep-mining",
  enabled = false,
  hidden = false,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-2.png",
  order = "b",
  icon_size = 64,
  ingredients = {},
  result =
	{
      {
        type = "item", name = "stone", count = 8
      },
      {
        type = "item", name = "coal", count = 6
      },
      {
        type = "item", name = "iron-ore", count = 5
      },
      {
        type = "item", name = "copper-ore", count = 5
      }
	},
    energy_required = 275.0
  },
  {
  type = "recipe",
  name = "deep-mining-3",
  category = "deep-mining",
  enabled = false,
  hidden = false,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-3.png",
  order = "c",
  icon_size = 64,
  ingredients = {},
  result =
	{
      {
        type = "item", name = "stone", count = 10
      },
      {
        type = "item", name = "coal", count = 8
      },
      {
        type = "item", name = "iron-ore", count = 7
      },
      {
        type = "item", name = "copper-ore", count = 7
      },
      {
        type = "item", name = "uranium-ore", count = 1
      }
	},
    energy_required = 250.0
  },
  {
  type = "recipe",
  name = "deep-mining-4",
  category = "deep-mining",
  enabled = false,
  hidden = false,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-4.png",
  order = "d",
  icon_size = 64,
  ingredients = {},
  result =
	{
      {
        type = "item", name = "stone", count = 12
      },
      {
        type = "item", name = "coal", count = 10
      },
      {
        type = "item", name = "iron-ore", count = 9
      },
      {
        type = "item", name = "copper-ore", count = 9
      },
      {
        type = "item", name = "uranium-ore", count = 2
      }
	},
    energy_required = 225.0
  },
  -- deep minning recipies for the miners.
  {
    type = "recipe",
    name = "deep-mine-MK1",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"stone-brick", 10},
      {"burner-mining-drill", 1},
	  {"electronic-circuit", 10},
    },
    result = "deep-mine-MK1",
    energy_required = 1.0
  },
  {
    type = "recipe",
    name = "deep-mine-MK2",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"inserter", 6},
      {"deep-mine-MK1", 2},
	  {"iron-gear-wheel", 10},
      {"underground-belt", 6},
    },
    result = "deep-mine-MK2",
    result_count = 1,
    energy_required = 1.2
  },
  {
    type = "recipe",
    name = "deep-mine-MK3",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK2", 2},
      {"fast-inserter", 6},
	  {"iron-gear-wheel", 20},
	  {"fast-underground-belt", 6},
	  {"electric-mining-drill", 2},
	},
    result = "deep-mine-MK3",
    result_count = 1,
    energy_required = 1.4
  },
  {
    type = "recipe",
    name = "deep-mine-MK4",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK3", 2},
	  {"concrete", 10},
	  {"engine-unit", 4},
	  {"iron-gear-wheel", 50},
	  {"assembling-machine-2", 4},
	},
    result = "deep-mine-MK4",
    result_count = 1,
    energy_required = 1.6
  },
  {
    type = "recipe",
    name = "deep-mine-MK5",
    category = "advanced-crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK4", 2},
      {"speed-module", 4},
	  {"iron-gear-wheel", 100},
      {"productivity-module", 4},
	  {"electric-engine-unit", 4},
	  {"express-underground-belt", 4},
	},
    result = "deep-mine-MK5",
    result_count = 1,
    energy_required = 1.8
  },
  {
    type = "recipe",
    name = "deep-mine-MK6",
    category = "advanced-crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK5", 2},
      {"speed-module-2", 4},
	  {"iron-gear-wheel", 200},
	  {"assembling-machine-3", 4},
	  {"stack-filter-inserter", 4},
      {"productivity-module-2", 4},
	},
    result = "deep-mine-MK6",
    result_count = 1,
    energy_required = 2.0
  },
  {
    type = "recipe",
    name = "deep-mine-MK7",
    category = "advanced-crafting",
    enabled = false,
    ingredients =
    {
      {"deep-mine-MK6", 2},
      {"speed-module-3", 4},
      {"nuclear-reactor", 2},
      {"cliff-explosives", 4},
      {"effectivity-module-3", 4},
      {"productivity-module-3", 4},
      {"refined-hazard-concrete", 1000},
	},
    result = "deep-mine-MK7",
    result_count = 1,
    energy_required = 3.0
  },
})
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3724
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by DaveMcW »

Rename result to results.
User avatar
demongo
Inserter
Inserter
Posts: 25
Joined: Sat Apr 13, 2019 11:09 pm
Contact:

Re: error help: Difficulty normal: Value must be a string in property tree at ROOT.recipe

Post by demongo »

SOLVED!!! THANKS DaveMcW...

Code: Select all

data:extend({
  {
    type = "recipe-category",
    name = "deep-mining-a"
  },
  {
    type = "recipe-category",
    name = "deep-mining-b"
  },
  {
    type = "recipe-category",
    name = "deep-mining-c"
  },
  {
    type = "recipe-category",
    name = "deep-mining-d"
  },
  -- deep minning recipies for ores.
  {
  type = "recipe",
  name = "deep-mining-1",
  category = "deep-mining-a",
  enabled = false,
  hidden = false,
  hide_from_player_crafting = true,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-1.png",
  order = "a",
  subgroup = "raw-resource",
  icon_size = 64,
  ingredients = {},
  results =
	{
      {
        type = "item", name = "stone", amount_min = 6, amount_max = 12
      },
      {
        type = "item", name = "coal", amount_min = 4, amount_max = 8
      },
      {
        type = "item", name = "iron-ore", amount_min = 3, amount_max = 6
      },
      {
        type = "item", name = "copper-ore", amount_min = 3, amount_max = 6
      }
	},
    energy_required = 60.0
  },
  {
  type = "recipe",
  name = "deep-mining-2",
  category = "deep-mining-b",
  enabled = false,
  hidden = false,
  hide_from_player_crafting = true,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-2.png",
  order = "b",
  subgroup = "raw-resource",
  icon_size = 64,
  ingredients = {},
  results =
	{
      {
        type = "item", name = "stone", amount_min = 8, amount_max = 16
      },
      {
        type = "item", name = "coal", amount_min = 6, amount_max = 12
      },
      {
        type = "item", name = "iron-ore", amount_min = 5, amount_max = 10
      },
      {
        type = "item", name = "copper-ore", amount_min = 5, amount_max = 10
      }
	},
    energy_required = 45.0
  },
  {
  type = "recipe",
  name = "deep-mining-3",
  category = "deep-mining-c",
  enabled = false,
  hidden = false,
  hide_from_player_crafting = true,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-3.png",
  order = "c",
  subgroup = "raw-resource",
  icon_size = 64,
  ingredients = {},
  results =
	{
      {
        type = "item", name = "stone", amount_min = 10, amount_max = 20
      },
      {
        type = "item", name = "coal", amount_min = 8, amount_max = 16
      },
      {
        type = "item", name = "iron-ore", amount_min = 7, amount_max = 14
      },
      {
        type = "item", name = "copper-ore", amount_min = 7, amount_max = 14
      },
      {
        type = "item", name = "uranium-ore", amount_min = 1, amount_max = 2
      }
	},
    energy_required = 30.0
  },
  {
  type = "recipe",
  name = "deep-mining-4",
  category = "deep-mining-d",
  enabled = false,
  hidden = false,
  hide_from_player_crafting = true,
  icon = "__DeepMineALT__/graphics/icons/deep-mining-4.png",
  order = "d",
  subgroup = "raw-resource",
  icon_size = 64,
  ingredients = {},
  results =
	{
      {
        type = "item", name = "stone", amount_min = 12, amount_max = 24
      },
      {
        type = "item", name = "coal", amount_min = 10, amount_max = 20
      },
      {
        type = "item", name = "iron-ore", amount_min = 9, amount_max = 18
      },
      {
        type = "item", name = "copper-ore", amount_min = 9, amount_max = 18
      },
      {
        type = "item", name = "uranium-ore", amount_min = 2, amount_max = 4
      }
	},
    energy_required = 20.0
  },
  -- deep minning recipies for the miners.
  {
    type = "recipe",
    name = "deep-mine-MK1",
    category = "crafting",
    enabled = false,
    ingredients =
    {
      {"stone-brick", 10},
      {"burner-mining-drill", 1},
	  {"electronic-circuit", 10},
    },
    result = "deep-mine-MK1",
    energy_required = 1.0
  },
  {
    type = "recipe",
    name = "deep-mine-MK2",
    category = "crafting",
    enabled = false,
	hide_from_player_crafting = true,
    ingredients =
    {
      {"inserter", 6},
      {"deep-mine-MK1", 2},
	  {"iron-gear-wheel", 10},
      {"underground-belt", 6},
    },
    result = "deep-mine-MK2",
    result_amount_min = 1, amount_max = 2,
    energy_required = 1.2
  },
  {
    type = "recipe",
    name = "deep-mine-MK3",
    category = "crafting",
    enabled = false,
	hide_from_player_crafting = true,
    ingredients =
    {
      {"deep-mine-MK2", 2},
      {"fast-inserter", 6},
	  {"iron-gear-wheel", 20},
	  {"fast-underground-belt", 6},
	  {"electric-mining-drill", 2},
	},
    result = "deep-mine-MK3",
    result_amount_min = 1, amount_max = 2,
    energy_required = 1.4
  },
  {
    type = "recipe",
    name = "deep-mine-MK4",
    category = "crafting",
    enabled = false,
	hide_from_player_crafting = true,
    ingredients =
    {
      {"deep-mine-MK3", 2},
	  {"concrete", 10},
	  {"engine-unit", 4},
	  {"iron-gear-wheel", 50},
	  {"assembling-machine-2", 4},
	},
    result = "deep-mine-MK4",
    result_amount_min = 1, amount_max = 2,
    energy_required = 1.6
  },
  {
    type = "recipe",
    name = "deep-mine-MK5",
    category = "advanced-crafting",
    enabled = false,
	hide_from_player_crafting = true,
    ingredients =
    {
      {"deep-mine-MK4", 2},
      {"speed-module", 4},
	  {"iron-gear-wheel", 100},
      {"productivity-module", 4},
	  {"electric-engine-unit", 4},
	  {"express-underground-belt", 4},
	},
    result = "deep-mine-MK5",
    result_amount_min = 1, amount_max = 2,
    energy_required = 1.8
  },
  {
    type = "recipe",
    name = "deep-mine-MK6",
    category = "advanced-crafting",
    enabled = false,
	hide_from_player_crafting = true,
    ingredients =
    {
      {"deep-mine-MK5", 2},
      {"speed-module-2", 4},
	  {"iron-gear-wheel", 200},
	  {"assembling-machine-3", 4},
	  {"stack-filter-inserter", 4},
      {"productivity-module-2", 4},
	},
    result = "deep-mine-MK6",
    result_amount_min = 1, amount_max = 2,
    energy_required = 2.0
  },
  {
    type = "recipe",
    name = "deep-mine-MK7",
    category = "advanced-crafting",
    enabled = false,
	hide_from_player_crafting = true,
    ingredients =
    {
      {"deep-mine-MK6", 2},
      {"speed-module-3", 4},
      {"nuclear-reactor", 2},
      {"cliff-explosives", 4},
      {"effectivity-module-3", 4},
      {"productivity-module-3", 4},
      {"refined-hazard-concrete", 1000},
	},
    result = "deep-mine-MK7",
    result_amount_min = 1, amount_max = 2,
    energy_required = 3.0
  },
})
also had to change the formatting in results to say amount_(min/max) not count...
Post Reply

Return to “Modding help”