Page 1 of 1

Steel recipe erroring

Posted: Wed Apr 20, 2016 11:32 am
by Winseven4lyf
This code is throwing an error saying that the steel-plate recipe doesn't exist, then the "name" node doesn't exist, although I CLEARLY ADDED NAME :evil:

Code: Select all

--Removing
data.raw.recipe["steel-plate"] = nil

--Adding
data:extend(
 {
  {
    type = "recipe",
    name = "steel-plate",
    energy_required = 7,
	category = "smelting",
	enabled = false,
    ingredients =
    {
      {"iron-plate", steel_amount}
    },
    result = "steel-plate",
    result_count = 1
  }
 }
)