Spielerando

Let a recipe accept any kind of wood, even when items count twice

A recipe asks for any wood and any fuel. Charcoal is fuel, planks are both. Picking the first match for each line can wrongly say you lack something you actually have. This entry finds a valid assignment whenever one exists.

Why this works

When one item can fill several roles, a quick choice for the first role may steal what the second needed. The honest question is whether any way of sharing works at all, so every possibility must be allowed to shift.

When not to use it

Do not search for the best fit when recipes name exact items, or when tags are so few and distinct that no item fits two lines. A plain lookup is simpler and quicker, and easier to explain to players.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 4 common mistakes and the fix
  • 53 lines of example code with 3 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "Let a recipe accept any kind of wood, even when items count twice" (read_entry any-wood-recipe-ingredient-matching) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP