Steel recipe erroring

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Winseven4lyf
Inserter
Inserter
Posts: 27
Joined: Fri Apr 08, 2016 7:20 am
Contact:

Steel recipe erroring

Post 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
  }
 }
)
Image

Post Reply

Return to “Modding help”