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
@@ -14,6 +14,8 @@ Combines requirements from multiple [[🎯 Goal|goals]].
Same material from two goals is one entry. Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12.
The same interchangeable set (every plank type) from two goals is one entry.
---
## Rule
@@ -31,6 +31,7 @@ aggregate requirements
(same material → one row)
for each material:
available = sum of every interchangeable option (or that one item)
missing = max(0, required − available)
```
+2 -2
View File
@@ -11,7 +11,7 @@ Missing = Required - Available
```
Required comes from goals (after resolution and aggregation).
Available comes from [[🎒 Inventory State]].
Available comes from [[🎒 Inventory State]]. For interchangeable items (any plank), available is the **sum** of every option.
---
@@ -19,7 +19,7 @@ Available comes from [[🎒 Inventory State]].
Missing materials are the **default** materials view. On the golden day they live in the **lower region** of the play overlay, under the goal list. See [[🚶 Day in the Life]] and [[🖼️ Wireframes]].
The player should see this first — one row per material, with how many are still needed:
The player should see this first — one row per material, with how many are still needed. A tag ingredient is still one row. If they hold spruce, the row says spruce. If they hold none, a generic label (Planks), not oak-by-default.
- Diamond x12
- Redstone x82
+5 -1
View File
@@ -2,7 +2,9 @@
A quantity of a material required to complete a [[🎯 Goal]].
Identified by the same **ItemId** as Target Item (`namespace:path`). Quantity ≥ 1.
Identified by one **ItemId**, or by **any of several** ItemIds when the recipe accepts substitutes (planks for a chest). Quantity ≥ 1.
Tags are not a domain type. The provider names the concrete items that all count.
---
@@ -28,6 +30,8 @@ Aggregated requirement:
Diamond x12
Chest needs any plank ×8. Crafting table needs any plank ×4. Aggregated: any plank ×12. Spruce and oak both count.
Projects do not change this. See [[📁 Project]] and [[➕ Material Aggregation]].
---