Step goal quantity by one recipe's output, not always 1.
Build / build (push) Failing after 30s

Capture, +, and - use RecipeProvider.outputCount. Planks move by 4. Gather stays 1. Minus at or below one yield removes the goal.
This commit is contained in:
Stephen Fasciani
2026-09-09 01:40:16 -04:00
parent d0033d613a
commit 3beaa12706
21 changed files with 128 additions and 35 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ Capture (hover item → Add key) is one caller. The use case does not know about
## Quantity
Always **1** on this path. New goal: quantity 1. Existing goal: quantity + 1.
One recipe’s output on this path (and on overlay `[+]`). New goal: that many. Existing goal: + that many. No recipe → 1.
---
+18
View File
@@ -368,6 +368,24 @@ The walk: finished items stayed on the overlay until a click. For a prosthetic t
---
### ADR-021 — Quantity steps by recipe output
**Date:** 2026-09-08
**Decision:** Capture, `[+]`, and `[-]` move Target Quantity by **one recipe’s output count**, not always 1. Oak planks +4. A furnace +1. No recipe → 1. `[-]` at or below one yield removes the goal.
The same recipe `VanillaRecipeProvider` already picked for ingredients. Ingredient math stays aligned with crafts.
**Reason:**
The walk: items that craft in stacks of 4 still ticked by 1, so the overlay was counting pieces instead of crafts.
**Status:** ✅ Accepted
**Supersedes:** ADR-012’s “Create = 1 / +1” freeze for quantity steps.
---
## Related Documents
[[🏛️ Architecture]]
@@ -13,6 +13,8 @@ Infrastructure answers. The domain never imports a recipe **viewer** (EMI/JEI/RE
RecipeProvider
resolve(ItemId target, int quantity)
→ list of MaterialRequirement
outputCount(ItemId target)
→ how many one recipe produces (gather → 1)
```
`ItemId` is `namespace:path` (e.g. `minecraft:furnace`). Not `net.minecraft.world.item.Item`.