Jump to content

Recommended Posts

Posted

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
  }
}

 

Posted (edited)
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
Posted
25 minutes ago, MadAlchemist said:

What is really strange: with comma, it works! (And yes, I have checked it again, NO commas in vanilla recipes... or viewer is buggy (Notepad++))

Thank you!

Vanilla recipes have tabs.  I prefer commas.

×
×
  • 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.