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,29 @@
|
||||
# ✅ Completed Goal
|
||||
|
||||
A [[🎯 Goal]] that the player considers finished.
|
||||
|
||||
---
|
||||
|
||||
## Completion strategy
|
||||
|
||||
Must be configurable.
|
||||
|
||||
Examples:
|
||||
|
||||
- Manual completion
|
||||
- Inventory detection
|
||||
- Future implementations
|
||||
|
||||
Ready To Craft is not completion. See [[🛠️ Ready To Craft]] and Philosophy Rule #5.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[🛠️ Ready To Craft]]
|
||||
|
||||
[[📈 Progress Calculation]]
|
||||
|
||||
[[📝 Decisions]]
|
||||
@@ -0,0 +1,41 @@
|
||||
# ➕ Material Aggregation
|
||||
|
||||
Combines requirements from multiple [[🎯 Goal|goals]].
|
||||
|
||||
---
|
||||
|
||||
## Input
|
||||
|
||||
- Active Goals
|
||||
|
||||
## Output
|
||||
|
||||
- Aggregated Material List — one entry per material, with how many are needed
|
||||
|
||||
Same material from two goals is one entry. Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12.
|
||||
|
||||
---
|
||||
|
||||
## Rule
|
||||
|
||||
Aggregation is across **active goals**.
|
||||
|
||||
[[📁 Project|Projects]] do not form a calculation boundary.
|
||||
|
||||
[[📈 Progress Calculation]] turns each aggregated count into still-needed (`Missing = Required - Available`).
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[📁 Project]]
|
||||
|
||||
[[🧱 Material Requirement]]
|
||||
|
||||
[[📈 Progress Calculation]]
|
||||
|
||||
[[📉 Missing Material]]
|
||||
|
||||
[[🖼️ Wireframes]]
|
||||
@@ -0,0 +1,39 @@
|
||||
# 🎒 Inventory State
|
||||
|
||||
A snapshot of materials currently available to the player.
|
||||
|
||||
---
|
||||
|
||||
## Domain view
|
||||
|
||||
The domain only cares about **available quantities**.
|
||||
|
||||
Inventory data is infrastructure.
|
||||
|
||||
How those quantities are gathered (player inventory, ender chest, later storage integrations) may change without a domain rewrite.
|
||||
|
||||
First slice: **player inventory only**. Keys are ItemId. Values are available counts.
|
||||
|
||||
---
|
||||
|
||||
## Used by
|
||||
|
||||
[[📈 Progress Calculation]] compares requirements to this snapshot.
|
||||
|
||||
```text
|
||||
Missing = Required - Available
|
||||
```
|
||||
|
||||
See [[📉 Missing Material]].
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[📉 Missing Material]]
|
||||
|
||||
[[📈 Progress Calculation]]
|
||||
|
||||
[[🏛️ Architecture]]
|
||||
|
||||
[[🧠 Philosophy]]
|
||||
@@ -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]]
|
||||
@@ -0,0 +1,31 @@
|
||||
# 📁 Project
|
||||
|
||||
An optional grouping of [[🎯 Goal|goals]].
|
||||
|
||||
---
|
||||
|
||||
## Examples
|
||||
|
||||
- AE2 Setup
|
||||
- Reactor Project
|
||||
- Factory Expansion
|
||||
|
||||
---
|
||||
|
||||
## Role
|
||||
|
||||
Projects exist purely for organization.
|
||||
|
||||
They are not a calculation boundary.
|
||||
|
||||
Material calculations aggregate across projects.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[➕ Material Aggregation]]
|
||||
|
||||
[[🗣️ Ubiquitous Language]]
|
||||
@@ -0,0 +1,59 @@
|
||||
# 📈 Progress Calculation
|
||||
|
||||
Calculates progress from goals, requirements, and inventory.
|
||||
|
||||
---
|
||||
|
||||
## Calculates
|
||||
|
||||
- [[📉 Missing Material|Missing Materials]]
|
||||
- [[🛠️ Ready To Craft|Ready-To-Craft Status]]
|
||||
|
||||
[[✅ Completed Goal|Completion]] is named. It is not in the first slice.
|
||||
|
||||
## Using
|
||||
|
||||
- [[🎯 Goal|Goals]]
|
||||
- [[🧱 Material Requirement|Material Requirements]]
|
||||
- [[🎒 Inventory State]]
|
||||
- [[🔌 Recipe Provider]] (via [[🧾 Recipe Resolution]])
|
||||
|
||||
---
|
||||
|
||||
## Formula (first slice)
|
||||
|
||||
```text
|
||||
for each active goal:
|
||||
remaining = max(0, target quantity − available(target item))
|
||||
requirements += resolve(target item, remaining)
|
||||
|
||||
aggregate requirements
|
||||
(same material → one row)
|
||||
|
||||
for each material:
|
||||
missing = max(0, required − available)
|
||||
```
|
||||
|
||||
Owned finished goods reduce **how many to resolve**. They are not subtracted again from ingredients.
|
||||
|
||||
A goal is [[🛠️ Ready To Craft]] when its remaining-to-obtain is 0, or every material required for that remaining is available.
|
||||
|
||||
`resolve` is one crafting level. No recipe → the remaining target items *are* the requirements (gather).
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🧾 Recipe Resolution]]
|
||||
|
||||
[[🔌 Recipe Provider]]
|
||||
|
||||
[[➕ Material Aggregation]]
|
||||
|
||||
[[🛠️ Ready To Craft]]
|
||||
|
||||
[[✅ Completed Goal]]
|
||||
|
||||
[[▶️ Create Goal]]
|
||||
|
||||
[[🎒 Inventory State]]
|
||||
@@ -0,0 +1,50 @@
|
||||
# 📉 Missing Material
|
||||
|
||||
A [[🧱 Material Requirement]] that has not yet been fulfilled.
|
||||
|
||||
---
|
||||
|
||||
## Formula
|
||||
|
||||
```text
|
||||
Missing = Required - Available
|
||||
```
|
||||
|
||||
Required comes from goals (after resolution and aggregation).
|
||||
Available comes from [[🎒 Inventory State]].
|
||||
|
||||
---
|
||||
|
||||
## Progressive disclosure
|
||||
|
||||
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:
|
||||
|
||||
- Diamond x12
|
||||
- Redstone x82
|
||||
- Gold Ingot x34
|
||||
|
||||
Same material from two goals is one row. See [[➕ Material Aggregation]].
|
||||
|
||||
Which goals require a material, recipe breakdowns, and dependency chains are expanded views. They exist. They are not forced.
|
||||
|
||||
See Philosophy Rule #3.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🧱 Material Requirement]]
|
||||
|
||||
[[🎒 Inventory State]]
|
||||
|
||||
[[📈 Progress Calculation]]
|
||||
|
||||
[[🧠 Philosophy]]
|
||||
|
||||
[[🚶 Day in the Life]]
|
||||
|
||||
[[🖼️ Wireframes]]
|
||||
|
||||
[[➕ Material Aggregation]]
|
||||
@@ -0,0 +1,41 @@
|
||||
# 📦 Bounded Contexts
|
||||
|
||||
---
|
||||
|
||||
Today Satistaskory is **one** bounded context.
|
||||
|
||||
Do not split until the domain demands it. See Philosophy Rule #9.
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Goal Planning Context
|
||||
|
||||
The player names goals. The system remembers them, resolves materials, and reports what is still missing.
|
||||
|
||||
Key concepts:
|
||||
|
||||
- [[🎯 Goal]]
|
||||
- [[📁 Project]]
|
||||
- [[🧱 Material Requirement]]
|
||||
- [[🎒 Inventory State]]
|
||||
- [[📉 Missing Material]]
|
||||
- [[🛠️ Ready To Craft]]
|
||||
- [[✅ Completed Goal]]
|
||||
|
||||
Services:
|
||||
|
||||
- [[🧾 Recipe Resolution]]
|
||||
- [[➕ Material Aggregation]]
|
||||
- [[📈 Progress Calculation]]
|
||||
|
||||
Recipe mods, inventory scanning, persistence, and UI are **infrastructure**. They are not contexts.
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🗣️ Ubiquitous Language]]
|
||||
|
||||
[[🏛️ Architecture]]
|
||||
|
||||
[[🌟 Project Vision]]
|
||||
@@ -0,0 +1,133 @@
|
||||
# 🗣️ Ubiquitous Language
|
||||
|
||||
> These terms have **ONE** meaning across the entire project.
|
||||
|
||||
---
|
||||
|
||||
## Core chain
|
||||
|
||||
```text
|
||||
Goal → Recipe Resolution → Material Requirements
|
||||
→ Material Aggregation → Inventory State
|
||||
→ Missing Materials / Ready To Craft
|
||||
→ Completed Goal
|
||||
```
|
||||
|
||||
[[📁 Project]] is optional grouping. It is not a step in the chain.
|
||||
|
||||
Material calculations aggregate across projects.
|
||||
|
||||
---
|
||||
|
||||
## [[🎯 Goal]]
|
||||
|
||||
A thing the player wishes to obtain.
|
||||
|
||||
Contains: Target Item (**ItemId**, `namespace:path`), Target Quantity (≥ 1).
|
||||
|
||||
One Goal per ItemId in the plan. Create at 1, or +1 if that item is already a goal. `[-]` at 1 removes it.
|
||||
|
||||
Examples: 4 Ender Chests. 1 AE2 Controller. 64 Export Buses.
|
||||
|
||||
Player copy **Crafting Goals** means this. Code and docs say Goal. See [[🖥️ Experience]].
|
||||
|
||||
---
|
||||
|
||||
## [[📁 Project]]
|
||||
|
||||
An optional grouping of goals.
|
||||
|
||||
Examples: AE2 Setup. Reactor Project. Factory Expansion.
|
||||
|
||||
Projects exist purely for organization.
|
||||
|
||||
---
|
||||
|
||||
## [[🧱 Material Requirement]]
|
||||
|
||||
A quantity of a material required to complete a goal.
|
||||
|
||||
Example: Diamond x12
|
||||
|
||||
---
|
||||
|
||||
## Aggregated Material Requirement
|
||||
|
||||
The combined [[🧱 Material Requirement|material requirements]] of all active goals.
|
||||
|
||||
Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12.
|
||||
|
||||
---
|
||||
|
||||
## [[🎒 Inventory State]]
|
||||
|
||||
A snapshot of materials currently available to the player.
|
||||
|
||||
The domain only cares about available quantities.
|
||||
|
||||
---
|
||||
|
||||
## [[📉 Missing Material]]
|
||||
|
||||
A material requirement that has not yet been fulfilled.
|
||||
|
||||
```text
|
||||
Missing = Required - Available
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## [[🛠️ Ready To Craft]]
|
||||
|
||||
All materials required for a goal are available.
|
||||
|
||||
Ready To Craft does not imply completion.
|
||||
|
||||
---
|
||||
|
||||
## [[✅ Completed Goal]]
|
||||
|
||||
A goal the player considers finished.
|
||||
|
||||
Completion strategy is configurable (manual, inventory detection, future implementations).
|
||||
|
||||
---
|
||||
|
||||
## Domain services
|
||||
|
||||
| Service | Meaning |
|
||||
|---------|---------|
|
||||
| [[🧾 Recipe Resolution]] | Goal → material requirements |
|
||||
| [[➕ Material Aggregation]] | Active goals → aggregated material list |
|
||||
| [[📈 Progress Calculation]] | Missing, ready-to-craft, completion status |
|
||||
|
||||
---
|
||||
|
||||
## Rejected (not in the language)
|
||||
|
||||
Not owned by this domain. May be integrated with later.
|
||||
|
||||
- Auto Crafting
|
||||
- AE2 Job Submission
|
||||
- Storage Automation
|
||||
- Item Routing
|
||||
- Quest Management
|
||||
- Factory Automation
|
||||
- Inventory Sorting
|
||||
- Recipe Viewing
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[📦 Bounded Contexts]]
|
||||
|
||||
[[🌟 Project Vision]]
|
||||
|
||||
[[🧭 Notes for the Wayfinder]]
|
||||
|
||||
[[🖥️ Experience]]
|
||||
|
||||
[[▶️ Create Goal]]
|
||||
|
||||
[[🔌 Recipe Provider]]
|
||||
@@ -0,0 +1,25 @@
|
||||
# 🛠️ Ready To Craft
|
||||
|
||||
A state indicating that all materials required for a [[🎯 Goal]] are available.
|
||||
|
||||
---
|
||||
|
||||
## Meaning
|
||||
|
||||
Ready To Craft does **not** imply completion.
|
||||
|
||||
Materials being present is not the same as the player considering the work finished.
|
||||
|
||||
See Philosophy Rule #5 and [[✅ Completed Goal]].
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[📉 Missing Material]]
|
||||
|
||||
[[✅ Completed Goal]]
|
||||
|
||||
[[📈 Progress Calculation]]
|
||||
@@ -0,0 +1,43 @@
|
||||
# 🧱 Material Requirement
|
||||
|
||||
A quantity of a material required to complete a [[🎯 Goal]].
|
||||
|
||||
Identified by the same **ItemId** as Target Item (`namespace:path`). Quantity ≥ 1.
|
||||
|
||||
---
|
||||
|
||||
## Example
|
||||
|
||||
Diamond x12
|
||||
|
||||
---
|
||||
|
||||
## Aggregation
|
||||
|
||||
The combined material requirements of all **active** goals.
|
||||
|
||||
Goal A requires:
|
||||
|
||||
Diamond x4
|
||||
|
||||
Goal B requires:
|
||||
|
||||
Diamond x8
|
||||
|
||||
Aggregated requirement:
|
||||
|
||||
Diamond x12
|
||||
|
||||
Projects do not change this. See [[📁 Project]] and [[➕ Material Aggregation]].
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[➕ Material Aggregation]]
|
||||
|
||||
[[📉 Missing Material]]
|
||||
|
||||
[[🧾 Recipe Resolution]]
|
||||
@@ -0,0 +1,46 @@
|
||||
# 🧾 Recipe Resolution
|
||||
|
||||
Converts a [[🎯 Goal]] into [[🧱 Material Requirement|material requirements]].
|
||||
|
||||
---
|
||||
|
||||
## Input
|
||||
|
||||
- Target Item
|
||||
- Quantity
|
||||
|
||||
## Output
|
||||
|
||||
- Material Requirements
|
||||
|
||||
---
|
||||
|
||||
## Boundary
|
||||
|
||||
This is a **domain service**.
|
||||
|
||||
Looking up recipes is **infrastructure**.
|
||||
|
||||
The domain calls a `RecipeProvider` port. It does not call EMI, JEI, or REI.
|
||||
|
||||
**One crafting level.** Not a tree. No recipe → the target item is the requirement. See [[🔌 Recipe Provider]].
|
||||
|
||||
Recipe **viewing** is out of scope. This service exists so the domain can resolve requirements, not so Satistaskory can become a recipe browser.
|
||||
|
||||
See [[🏛️ Architecture]].
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[🧱 Material Requirement]]
|
||||
|
||||
[[➕ Material Aggregation]]
|
||||
|
||||
[[🏛️ Architecture]]
|
||||
|
||||
[[🔌 Recipe Provider]]
|
||||
|
||||
[[📈 Progress Calculation]]
|
||||
Reference in New Issue
Block a user