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:
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user