|
1 | | -# Absolute Order |
| 1 | +# 📦 Absolute Order | Multi-Loader Inventory Engineering |
2 | 2 |
|
3 | | -**Absolute Order** (formerly *Chest Separators*) is a Minecraft utility mod for organizing containers and your inventory. It combines a purely visual layer — colored dividers and slot backgrounds painted onto any container GUI — with a powerful per-slot **filter** system that controls which items may enter each slot, and one-key **auto-deposit / auto-pull** to move items between your inventory and nearby storage. |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
4 | 10 |
|
5 | | -Version **2.0** ("The Liftoff Update") rebuilt the mod as a **multi-loader, multi-version** project: one codebase now ships for Fabric, NeoForge and Forge across a wide range of Minecraft versions. |
| 11 | +**Absolute Order** (formerly *Chest Separators*) is an inventory-organization mod built around a **Virtual Overlay System**: instead of crafting physical dividers that waste slots, it paints separators and per-slot filters directly onto the container GUI, and enforces those filters server-side for real item-routing behavior (shift-click, hoppers, auto-deposit). |
| 12 | + |
| 13 | +Version **2.0 — "The Liftoff Update"** rebuilt the project from a single Fabric mod into **one shared codebase that ships for Fabric, NeoForge and Forge across nine Minecraft versions** (1.12.2 → 26.2), spanning five distinct rendering eras. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +> **⚠️ Engineering Focus** |
| 18 | +> This project is a study in **cross-version portability**: a common source set driven by **Architectury** + **Mojmap/Parchment**, an abstraction over five rendering eras (from legacy `MatrixStack` to modern `RenderPipelines`), a **server-authoritative persistence layer** using Data Components / chunk NBT, and heavy **Java bytecode manipulation** via SpongePowered Mixins for insertion rules, hopper routing and GUI hooks. |
6 | 19 |
|
7 | 20 | --- |
8 | 21 |
|
9 | | -## Features |
| 22 | +## 🧩 Feature Set |
| 23 | + |
| 24 | +### 1. Visual Separators — client-local overlay |
| 25 | +Colored lines between slots and per-slot backgrounds painted onto any container GUI. A custom slot-hitting algorithm allows fluid **drag & paint** (pencil/brush/area/trace) across the grid, rendered on the client tick for zero input lag. A real-time **HSV→RGB engine** generates any of 16.7M colors with an eyedropper and per-layer custom palettes, and layouts are deep-copied through an **NBT clipboard** to replicate a design across containers instantly. |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +The editor floats over the container grid with layered depth control and per-zone tools, so it never Z-fights with the slots underneath. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +### 2. Whitelist Filters — server-authoritative |
| 34 | +Per-slot rules deciding which items may enter a slot, built by dragging items in and out of a filter and grouping slots into one logical unit. |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +A filter's item order is a **priority order** you arrange by dragging — it drives which slot each item lands in, and powers one-click auto-sort. Rules are enforced for **manual placement, shift-click and hoppers** (each axis toggleable), refused at the insertion mixin rather than silently swallowed. |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +Whole filter setups can be saved as **presets** and reapplied to any container. Filters on **block containers travel with the block** (Data Component → chunk NBT); entity inventories and the Ender Chest are client-local. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +### 3. Auto-Deposit & Auto-Pull |
| 47 | +One keystroke sweeps matching items from your inventory **into** nearby filtered storage… |
10 | 48 |
|
11 | | -### Visual separators (cosmetic, client-side) |
12 | | -- Paint colored **lines** between slots and **backgrounds** on slots of any container (chests, barrels, shulker boxes, entity inventories, the Ender Chest…). |
13 | | -- Full **HSV color picker** with an eyedropper and per-layer custom palette slots. |
14 | | -- **Drag & paint** with pencil/brush/area/trace tools, plus a smart eraser and per-container reset. |
15 | | -- **Undo / redo** and an NBT **clipboard** to copy a whole layout onto another container. |
16 | | -- Purely client-side and cosmetic: stored per-player on your machine, never sent to the server. |
| 49 | + |
17 | 50 |
|
18 | | -### Whitelist filters (functional) |
19 | | -- Assign each slot a **filter** of allowed items; group several slots into one logical filter. |
20 | | -- Enforced for **manual placement, shift-click, and hoppers** (each rule can be toggled per filter). |
21 | | -- The filter's item order is a **priority order** you arrange by dragging — it decides which slot an item lands in. |
22 | | -- **Presets** for quick reuse, import from the creative tabs / search, and export. |
23 | | -- Filters on **block containers are server-authoritative** (they travel with the block); entity inventories and the Ender Chest are client-local. |
| 51 | +…or pulls items **from** storage to top up your filtered inventory slots. Every action ships a **live preview** generated by the same ordering primitive as the real operation, so the predicted result and the server's authoritative result can never drift. |
24 | 52 |
|
25 | | -### Auto-deposit & auto-pull |
26 | | -- One key sweeps matching items from your inventory **into** nearby filtered storage (auto-deposit), or pulls items **from** storage to top up your filtered inventory slots (pull). |
27 | | -- Live **previews** show exactly what an action will do before you commit it. |
| 53 | + |
28 | 54 |
|
29 | | -### Quality of life |
30 | | -- Cloth Config settings screen and rebindable keys. |
31 | | -- REI / EMI / JEI exclusion-zone integration so the editor never overlaps recipe UIs. |
32 | | -- Localized into 20 languages. |
| 55 | +### 4. Configuration |
| 56 | +Everything is tunable through a Cloth Config screen with rebindable keys, and the editor declares REI / EMI / JEI exclusion zones so it never overlaps recipe UIs. Localized into 20 languages. |
| 57 | + |
| 58 | + |
33 | 59 |
|
34 | 60 | --- |
35 | 61 |
|
36 | | -## Supported versions & loaders |
| 62 | +## 🏗️ Technical Architecture |
| 63 | + |
| 64 | +### Multi-loader, single source of truth |
| 65 | +Modern ports use an Architectury **`common/` + loader modules** layout: the feature code lives once in `common`, and thin Fabric / NeoForge / Forge modules bind it to each platform's entrypoints, networking and registration. The legacy **1.12.2** port is a separate hand-written Forge project (MCP names, no Architectury) that shares the design but not the code. |
| 66 | + |
| 67 | +### Rendering-era abstraction |
| 68 | +The dual-layer rendering pipeline (persistent separators behind items, transient editor UI on top) is written against five eras and selected per version: |
| 69 | + |
| 70 | +| Era | Representative | GUI primitive | |
| 71 | +| --- | --- | --- | |
| 72 | +| E5 | 26.1 / 26.2 / 1.21.11 | `RenderPipelines` | |
| 73 | +| E4 | 1.21.1 / 1.20.1 | `GuiGraphics` | |
| 74 | +| E3 | 1.19.2 | `GuiGraphics` (early) | |
| 75 | +| E2 | 1.18.2 / 1.16.5 | `PoseStack` / `MatrixStack` | |
| 76 | +| E1 | 1.12.2 | legacy immediate mode | |
37 | 77 |
|
38 | | -| Minecraft | Loaders | |
39 | | -|---|---| |
40 | | -| 26.2, 26.1 | Fabric, NeoForge | |
41 | | -| 1.21.11 | Fabric, NeoForge | |
42 | | -| 1.21.1 | Fabric, NeoForge | |
43 | | -| 1.20.1 | Fabric, Forge | |
44 | | -| 1.19.2 | Fabric, Forge | |
45 | | -| 1.18.2 | Fabric, Forge | |
46 | | -| 1.16.5 | Fabric, Forge | |
47 | | -| 1.12.2 | Forge | |
| 78 | +### Context-aware persistence |
| 79 | +A **polymorphic data strategy** picks the storage path per target: |
| 80 | +* **Block containers** → server-authoritative **Data Component** that rides the block into chunk NBT. |
| 81 | +* **Entities** (minecarts, llamas…) → keyed by the entity's persistent `UUID`. |
| 82 | +* **Client-local** visuals + inventory/Ender-Chest filters → per-world `.dat` NBT files. |
48 | 83 |
|
49 | | -> Quilt is covered by the Fabric jar. Each release jar is named `AbsoluteOrder-<version>-<loader>-mc<version-or-range>.jar`. |
| 84 | +Item-count serialization, item-equality and the resource-id API all differ by version (byte vs VarInt on the wire, `isSameItemSameComponents` vs `isSameItemSameTags` vs a meta-aware `ItemKey`); these are centralized so one change propagates cleanly across all nine ports. |
| 85 | + |
| 86 | +### Enforcement pipeline |
| 87 | +Insertion is a **4-pass deposit sweep** — filtered stacking → filtered filling → unfiltered stacking → unfiltered filling — and every automatic path (shift, hopper, grab, deposit) shares one `FilterPriority` ordering primitive, expressed as a *conditional refusal* so vanilla performs the actual transfer and client/server stay in agreement. |
50 | 88 |
|
51 | 89 | --- |
52 | 90 |
|
53 | | -## Installation |
| 91 | +## 🎮 Supported Versions & Loaders |
| 92 | + |
| 93 | + |
54 | 94 |
|
55 | | -1. Install the matching loader for your Minecraft version (Fabric, NeoForge, or Forge). |
56 | | -2. On Fabric, also install the **Fabric API**; on all loaders, **Architectury API** is required (Forge/NeoForge builds bundle what they need — see the download page notes). |
57 | | -3. Drop the jar for your version and loader into your `mods` folder. |
| 95 | +| Minecraft | Loaders | Build JDK | |
| 96 | +| --- | --- | --- | |
| 97 | +| 26.2, 26.1 | Fabric, NeoForge | 25 | |
| 98 | +| 1.21.11, 1.21.1 | Fabric, NeoForge | 21 | |
| 99 | +| 1.20.1, 1.19.2, 1.18.2, 1.16.5 | Fabric, Forge | 21 | |
| 100 | +| 1.12.2 | Forge | 11 | |
58 | 101 |
|
59 | | -> **Playing on a server?** Filters for block containers are **server-authoritative**, so the mod must be installed **on the server** as well as on the client for those filters to persist in multiplayer. The visual separators and inventory filters are client-side and work without a modded server. |
| 102 | +> Quilt runs the Fabric jar. Release jars are named `AbsoluteOrder-<version>-<loader>-mc<version-or-range>.jar`. |
60 | 103 |
|
61 | 104 | --- |
62 | 105 |
|
63 | | -## Building from source |
| 106 | +## 💻 Installation |
| 107 | + |
| 108 | +1. Install the matching loader (Fabric, NeoForge, or Forge) for your Minecraft version. |
| 109 | +2. Add the dependencies noted on the download page — **Fabric API** (Fabric) and **Architectury API** on the modern ports. |
| 110 | +3. Drop the jar for your version + loader into your `mods` folder. |
64 | 111 |
|
65 | | -The project uses Gradle with Architectury Loom. Each version lives in its own module (`multiloader`, `multiloader-1.20.1`, `multiloader-1.12.2`, …). Build a module with its required JDK, for example: |
| 112 | +> **Multiplayer:** filters on block containers are **server-authoritative**, so the mod must be installed **on the server** for those filters to persist online. Visual separators and inventory filters are client-side and work without a modded server. |
| 113 | +
|
| 114 | +--- |
| 115 | + |
| 116 | +## 🛠️ Building from Source |
| 117 | + |
| 118 | +Gradle + Architectury Loom, one module per version. Build a module with its required JDK: |
66 | 119 |
|
67 | 120 | ```bash |
68 | | -# from a version module directory |
| 121 | +# from a version module directory (e.g. multiloader-1.20.1/) |
69 | 122 | ./gradlew build |
70 | 123 | ``` |
71 | 124 |
|
72 | | -JDK requirements: **Java 21** for the modern ports, **Java 25** for the 26.x ports, and **Java 11** for the legacy 1.12.2 port. |
| 125 | +JDKs: **21** for the modern ports, **25** for the 26.x ports, **11** for legacy 1.12.2. |
73 | 126 |
|
74 | 127 | --- |
75 | | - |
76 | | -## License & credits |
77 | | - |
78 | | -Created and maintained by **marcsanz-dev**. See the in-repo license for terms. |
| 128 | +*Created and maintained by **marcsanz-dev**. Looking for the internals? Start at `common/src/main/java/...` (or `src/` on 1.12.2) for the Mixin and networking implementation.* |
0 commit comments