Page 1 of 1

Help with recipe

Posted: Mon Apr 18, 2022 11:20 am
by MateuszCOMPANY
Trying change recipe for rails
Found source in prototypes/recipe.lua
Changed it to mod and its how look final, but game telling me code is invalid. Could somebody correct it?

Code: Select all

data:extend(
{
  {
    type = "recipe",
    name = "rail",
    enabled = false,
    ingredients =
    {
      {"stone", 2},
      {"wood", 2},
      {"steel-plate", 1}
    },
    result = "rail",
    result_count = 2
  },
 end

Re: Help with recipe

Posted: Mon Apr 18, 2022 1:05 pm
by robot256
That "end" should be a close brace and close paren "})", matching the beginning of "data:extend({".

Re: Help with recipe

Posted: Mon Apr 18, 2022 1:20 pm
by MateuszCOMPANY