3beaa12706
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.
101 lines
2.5 KiB
Markdown
101 lines
2.5 KiB
Markdown
# 🎯 Goal
|
||
|
||
A **Goal** is a thing the player wishes to obtain.
|
||
|
||
---
|
||
|
||
## Contains
|
||
|
||
- Target Item — an **ItemId** (`namespace:path`, e.g. `minecraft:furnace`). Not a Minecraft `Item` class.
|
||
- Target Quantity — integer **≥ 1**
|
||
|
||
Examples:
|
||
|
||
- 4 Ender Chests
|
||
- 1 AE2 Controller
|
||
- 64 Export Buses
|
||
|
||
---
|
||
|
||
## Identity
|
||
|
||
One Goal per Target Item in the plan.
|
||
|
||
Adding an item that is already a goal **increments** that goal’s quantity. It does not create a second row.
|
||
|
||
[[📁 Project|Projects]] are not in the first slice. This identity is for the single plan.
|
||
|
||
---
|
||
|
||
## Quantity
|
||
|
||
Target Quantity is required and is never 0.
|
||
|
||
| Action | Result |
|
||
|--------|--------|
|
||
| [[▶️ Create Goal]] | One recipe’s output if new; **+ that output** if the ItemId already exists. No recipe → 1 |
|
||
| `[+]` on the overlay | + one recipe’s output (planks +4). No recipe → +1 |
|
||
| `[-]` | − one recipe’s output. At or below that step, the goal is **removed** |
|
||
| `X Clear Items` | All goals removed |
|
||
|
||
There is no quantity picker on capture. See [[🖥️ Experience]].
|
||
|
||
---
|
||
|
||
## How a goal starts
|
||
|
||
A goal starts when the player names a target item.
|
||
|
||
How they point at the item is experience. See [[🚶 Day in the Life]] and [[▶️ Create Goal]].
|
||
|
||
---
|
||
|
||
## Lifecycle
|
||
|
||
```text
|
||
Created
|
||
↓
|
||
Requirements Calculated
|
||
↓
|
||
Missing Materials
|
||
↓
|
||
Ready To Craft
|
||
↓
|
||
Completed
|
||
```
|
||
|
||
A goal is created with a target item and quantity. [[🧾 Recipe Resolution]] produces its [[🧱 Material Requirement|material requirements]] for **how many are still to obtain** (target quantity minus how many of that item are already available). [[📈 Progress Calculation]] compares those requirements to [[🎒 Inventory State]], yielding [[📉 Missing Material|missing materials]] and eventually [[🛠️ Ready To Craft]].
|
||
|
||
[[✅ Completed Goal|Completion]] is a separate decision from readiness. Manual `[−]` / Clear always. Inventory detection is opt-in (`/satistaskory auto-remove`): a gain in held target items reduces quantity and removes the goal at 0.
|
||
|
||
---
|
||
|
||
## Relationships
|
||
|
||
- May belong to a [[📁 Project]] (optional). Projects are not packaged in the first slice.
|
||
- Material calculations ignore project boundaries and aggregate across active goals
|
||
|
||
---
|
||
|
||
## Related Documents
|
||
|
||
[[▶️ Create Goal]]
|
||
|
||
[[🚶 Day in the Life]]
|
||
|
||
[[🖥️ Experience]]
|
||
|
||
[[📁 Project]]
|
||
|
||
[[🧱 Material Requirement]]
|
||
|
||
[[🛠️ Ready To Craft]]
|
||
|
||
[[✅ Completed Goal]]
|
||
|
||
[[🗣️ Ubiquitous Language]]
|
||
|
||
[[🖼️ Wireframes]]
|
||
|
||
[[📝 Decisions]]
|