|
1 | | -# 📦 Chest Separators | Visual Inventory Organization |
| 1 | +# Absolute Order |
2 | 2 |
|
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 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. |
7 | 4 |
|
8 | | -**Chest Separators** is a lightweight, client-side utility mod designed to enhance inventory management UX without altering server-side data. Unlike traditional mods that require crafting physical items (wasting inventory slots), this project implements a **Virtual Overlay System**, allowing users to draw visual dividers directly onto the container GUI. |
9 | | - |
10 | | -> **⚠️ Engineering Focus** |
11 | | -> This project demonstrates advanced **Java Bytecode Manipulation** using Mixins for rendering hooks and implements a custom **HSV-to-RGB Color Engine** for real-time dynamic palette generation. |
| 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. |
12 | 6 |
|
13 | 7 | --- |
14 | 8 |
|
15 | | -## 📸 Interface & Workflow (v1.1 Update) |
16 | | - |
17 | | -The user experience focuses on fluidity ("Drag & Paint") and deep customization via the new RGB Engine. |
18 | | - |
19 | | -### 1. Modular UI Architecture |
20 | | -New in v1.1: Layered UI rendering with depth control. The editor now floats independently over the container grid, preventing Z-fighting artifacts. |
21 | | - |
22 | | - |
| 9 | +## Features |
23 | 10 |
|
24 | | -<br> |
| 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. |
25 | 17 |
|
26 | | -### 2. HSV Color Engine & Persistence |
27 | | -Moving away from static byte arrays, the mod now uses real-time `Math.hsvToRgb` conversion. Users can generate any color (16.7M possibilities) and persist them into custom NBT slots. |
| 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. |
28 | 24 |
|
29 | | - |
| 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. |
30 | 28 |
|
31 | | -<br> |
| 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. |
32 | 33 |
|
33 | | -### 3. Raycast Drag & Paint |
34 | | -Utilizes a custom slot-hitting algorithm to allow fluid "painting" across the GUI. Updates are rendered in real-time on the client tick event, ensuring zero input lag. |
| 34 | +--- |
35 | 35 |
|
36 | | - |
| 36 | +## Supported versions & loaders |
37 | 37 |
|
38 | | -<br> |
| 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 | |
39 | 48 |
|
40 | | -### 4. NBT Clipboard Serialization |
41 | | -Implements a deep-copy mechanism. Complex layouts are serialized into NBT data to replicate designs across multiple containers (Chests, Barrels, Shulkers) instantly. |
| 49 | +> Quilt is covered by the Fabric jar. Each release jar is named `AbsoluteOrder-<version>-<loader>-mc<version-or-range>.jar`. |
42 | 50 |
|
43 | | - |
| 51 | +--- |
44 | 52 |
|
45 | | -<br> |
| 53 | +## Installation |
46 | 54 |
|
47 | | -### 5. State Management Tools |
48 | | -Precise control over the visual layer. The **Smart Eraser** modifies specific bits in the array, while the **Trash Can** triggers a full array reset for the container. |
| 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. |
49 | 58 |
|
50 | | - |
| 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. |
51 | 60 |
|
52 | 61 | --- |
53 | 62 |
|
54 | | -## 🏗️ Technical Architecture |
| 63 | +## Building from source |
55 | 64 |
|
56 | | -The core engineering challenge in v1.1 was integrating a complex UI state (Color Picker) while maintaining the zero-conflict rendering pipeline. |
| 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: |
57 | 66 |
|
58 | | -### The Rendering Pipeline (Dual-Layer Strategy) |
59 | | -To achieve the visual effect where lines appear *behind* items but *above* the background texture, the rendering logic is split: |
60 | | -* **Layer 1 (Background):** Injected at the `HEAD` of the `drawSlots` method. This renders the persistent separator data relative to the container's coordinate system. |
61 | | -* **Layer 2 (Transient UI):** The new v1.1 Editor and Color Picker are rendered at the `TAIL` of the render loop. This ensures high Z-Index priority for the floating windows and tooltips. |
| 67 | +```bash |
| 68 | +# from a version module directory |
| 69 | +./gradlew build |
| 70 | +``` |
62 | 71 |
|
63 | | -### Context-Aware Persistence |
64 | | -The mod employs a **Polymorphic Data Strategy** to save configurations: |
65 | | -* **Static Blocks:** Uses `BlockPos` + `DimensionID` to create unique NBT files. |
66 | | -* **Dynamic Entities:** Detects if the inventory belongs to an entity (e.g., Llama, Minecart) and uses the entity's persistent `UUID`. |
| 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. |
67 | 73 |
|
68 | 74 | --- |
69 | 75 |
|
70 | | -## 💻 Installation & Setup |
| 76 | +## License & credits |
71 | 77 |
|
72 | | -1. **Prerequisites:** Install [Minecraft Java Edition](https://www.minecraft.net/) and [Fabric Loader](https://fabricmc.net/). |
73 | | -2. **Fabric API:** Ensure the [Fabric API](https://modrinth.com/mod/fabric-api) is installed. |
74 | | -3. **Deployment:** Drop the [ChestSeparators-v1.1.0.jar](https://modrinth.com/mod/chest-separators) file into your `.minecraft/mods` folder. |
75 | | -4. **Usage:** Open any chest and click the **Pencil (✎)** icon to access the new UI. |
76 | | - |
77 | | ---- |
78 | | -*Looking for the source code? Check the `src` folder for the Mixin implementation.* |
| 78 | +Created and maintained by **marcsanz-dev**. See the in-repo license for terms. |
0 commit comments