data:extend(
{
  {
    type = "recipe",
    name = "transport-belt",
    ingredients =
    {
      {"iron-plate", 2},
      {"iron-gear-wheel", 2}
    },
    result = "transport-belt",
  },
  {
    type = "recipe",
    name = "fast-transport-belt",
    enabled = false,
    ingredients =
    {
      {"steel-plate", 2},
      {"iron-gear-wheel", 4},
    },
    result = "fast-transport-belt"
  },
  {
    type = "recipe",
    name = "express-transport-belt",
    enabled = false,
    ingredients =
    {
      {"steel-plate", 2},
      {"iron-gear-wheel", 4},
    },
    result = "express-transport-belt"
  },

}
)


if settings.startup["bobmods-logistics-beltrequireprevious"].value == true then

bobmods.lib.recipe.add_ingredient("fast-transport-belt", {"transport-belt", 1})
bobmods.lib.recipe.add_ingredient("express-transport-belt", {"fast-transport-belt", 1})

data:extend(
{
  {
    type = "recipe",
    name = "underground-belt",
    enabled = false,
    energy_required = 1,
    ingredients =
    {
      {"transport-belt", 5},
      {"iron-plate", 4},
    },
    result_count = 2,
    result = "underground-belt",
  },
  {
    type = "recipe",
    name = "fast-underground-belt",
    energy_required = 2,
    enabled = false,
    ingredients =
    {
      {"underground-belt", 2},
      {"steel-plate", 14},
      {"iron-gear-wheel", 20},
    },
    result_count = 2,
    result = "fast-underground-belt",
  },
  {
    type = "recipe",
    name = "express-underground-belt",
    energy_required = 2,
    enabled = false,
    ingredients =
    {
      {"fast-underground-belt", 2},
      {"steel-plate", 14},
      {"iron-gear-wheel", 20},
    },
    result_count = 2,
    result = "express-underground-belt"
  },


  {
    type = "recipe",
    name = "splitter",
    enabled = false,
    energy_required = 1,
    ingredients =
    {
      {"transport-belt", 2},
      {"iron-plate", 4},
      {"iron-gear-wheel", 4},
      {"electronic-circuit", 5},
    },
    result = "splitter",
  },
  {
    type = "recipe",
    name = "fast-splitter",
    enabled = false,
    energy_required = 2,
    ingredients =
    {
      {"splitter", 1},
      {"steel-plate", 8},
      {"iron-gear-wheel", 14},
      {"electronic-circuit", 5},
    },
    result = "fast-splitter",
  },
  {
    type = "recipe",
    name = "express-splitter",
    enabled = false,
    energy_required = 2,
    ingredients =
    {
      {"fast-splitter", 1},
      {"steel-plate", 8},
      {"iron-gear-wheel", 14},
      {"advanced-circuit", 5},
    },
    result = "express-splitter"
  },
}
)

else

data:extend(
{
  {
    type = "recipe",
    name = "underground-belt",
    enabled = false,
    energy_required = 1,
    ingredients =
    {
      {"transport-belt", 5},
      {"iron-plate", 4},
    },
    result_count = 2,
    result = "underground-belt",
  },
  {
    type = "recipe",
    name = "fast-underground-belt",
    energy_required = 2,
    enabled = false,
    ingredients =
    {
      {"fast-transport-belt", 5},
      {"steel-plate", 4},
    },
    result_count = 2,
    result = "fast-underground-belt",
  },
  {
    type = "recipe",
    name = "express-underground-belt",
    energy_required = 2,
    enabled = false,
    ingredients =
    {
      {"express-transport-belt", 5},
      {"steel-plate", 4},
    },
    result_count = 2,
    result = "express-underground-belt"
  },


  {
    type = "recipe",
    name = "splitter",
    enabled = false,
    energy_required = 1,
    ingredients =
    {
      {"transport-belt", 2},
      {"iron-plate", 4},
      {"iron-gear-wheel", 4},
      {"electronic-circuit", 5},
    },
    result = "splitter",
  },
  {
    type = "recipe",
    name = "fast-splitter",
    enabled = false,
    energy_required = 2,
    ingredients =
    {
      {"fast-transport-belt", 2},
      {"steel-plate", 4},
      {"iron-gear-wheel", 4},
      {"electronic-circuit", 5},
    },
    result = "fast-splitter",
  },
  {
    type = "recipe",
    name = "express-splitter",
    enabled = false,
    energy_required = 2,
    ingredients =
    {
      {"fast-transport-belt", 2},
      {"steel-plate", 4},
      {"iron-gear-wheel", 4},
      {"advanced-circuit", 5},
    },
    result = "express-splitter"
  },
}
)
end