Jump to content

Grid recipe not loading


MadAlchemist

Recommended Posts

Hello! I am trying to create my first VintageStory mod, but constantly getting an error, something like "ingredient pattern size wrong" or "no ingredient pattern" (it disappearss too quickly to write down, and not appears in logs). Recipe is not loaded, of course. Here is my recipe JSON:
 

{
  ingredientPattern: "K F",
  width: 1,
  height: 2,
  ingredients: {
    "K": {
      type: "item",
      code: "game:knife-*",
      isTool: true
    },
    "F": {
      type: "item",
      code: "game:firewood"
    }
  },
  output: {
    type: "item",
    code: "game:stick",
    quantity: 2
  }
}

 

Link to comment
Share on other sites

1 hour ago, MadAlchemist said:

Hello! I am trying to create my first VintageStory mod, but constantly getting an error, something like "ingredient pattern size wrong" or "no ingredient pattern" (it disappearss too quickly to write down, and not appears in logs). Recipe is not loaded, of course. Here is my recipe JSON:
 

{
  ingredientPattern: "K F",
  width: 1,
  height: 2,
  ingredients: {
    "K": {
      type: "item",
      code: "game:knife-*",
      isTool: true
    },
    "F": {
      type: "item",
      code: "game:firewood"
    }
  },
  output: {
    type: "item",
    code: "game:stick",
    quantity: 2
  }
}

 

My first guess? The ingredientPattern needs a comma or a tab between rows.  I *think* that's a space above.
 

ingredientPattern: "K,F",
Edited by Spear and Fang
  • Thanks 1
Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.