Replace the empty flat docs with the Media Farm shelf layout: vision, philosophy, language, architecture (including packages, RecipeProvider, and Create Goal), player day, and prototype freezes. The NeoForge example code is still not the architecture.
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
# 🎯 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]] | Quantity **1** if new; **+1** if that ItemId already exists |
|
||||
| `[+]` on the overlay | Quantity + 1 |
|
||||
| `[-]` when quantity > 1 | Quantity − 1 |
|
||||
| `[-]` when quantity is 1 | 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. It is **not in the first slice**.
|
||||
|
||||
---
|
||||
|
||||
## 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]]
|
||||
Reference in New Issue
Block a user