Help with recipe

Place to get help with not working mods / modding interface.
MateuszCOMPANY
Inserter
Inserter
Posts: 39
Joined: Wed Mar 09, 2022 12:36 am
Contact:

Help with recipe

Post 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
robot256
Smart Inserter
Smart Inserter
Posts: 1248
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Help with recipe

Post by robot256 »

That "end" should be a close brace and close paren "})", matching the beginning of "data:extend({".
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
MateuszCOMPANY
Inserter
Inserter
Posts: 39
Joined: Wed Mar 09, 2022 12:36 am
Contact:

Re: Help with recipe

Post by MateuszCOMPANY »

Post Reply

Return to “Modding help”