Count every plank a chest will take, not only oak.
Build / build (push) Failing after 32s

Tag ingredients are one interchangeable requirement. Available is the sum. Overlay names the stack the player holds; empty shows Planks, not oak-by-default.
This commit is contained in:
Stephen Fasciani
2026-09-08 06:28:04 -04:00
parent 5d49f1482f
commit bac020f335
20 changed files with 361 additions and 34 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ RecipeProvider
`ItemId` is `namespace:path` (e.g. `minecraft:furnace`). Not `net.minecraft.world.item.Item`.
`MaterialRequirement` is `(ItemId, quantity)`.
`MaterialRequirement` is `(options, quantity)`. `options` is one ItemId, or several that all count.
---
@@ -29,7 +29,7 @@ RecipeProvider
| Item has a recipe | **One crafting level** of ingredients, already scaled for `quantity` (including recipe output count) |
| Item has no recipe | One requirement: `(target, quantity)` — a gather |
| Several recipes exist | Provider picks **one**. Recipe choice is not in the slice |
| Ingredient is a tag | Provider returns **concrete** ItemIds. Tags are not a domain type yet |
| Ingredient is a tag | One requirement whose **options** are every concrete member. Tags are not a domain type. Available = sum of the members. |
Not a recipe tree. Not a recipe browser.
@@ -50,7 +50,7 @@ Catalysts (AE2 press not consumed) are not modelled yet. The adapter may list th
## Shipped implementation
`VanillaRecipeProvider` over `RecipeManager` (all types, by output). Crafting-table recipes preferred when several match; else first highest score. Empty `getIngredients()` → gather.
`VanillaRecipeProvider` over `RecipeManager` (all types, by output). Crafting-table recipes preferred when several match; else first highest score. Empty `getIngredients()` → gather. Several `getItems()` → one interchangeable requirement (chest + spruce planks).
`StubRecipeProvider` remains for unit tests.