## 🧾 Changelog
### **v2.0.0 – Major Rewrite & Network Overhaul**
This update represents a full **codebase modernization** and feature expansion from earlier versions.
#### 🧱 New Blocks & Items
- 🆕 **Intake Block** – automatically pulls nearby items into the network
- 🆕 **Process Probe** – adds the foundation for automated sorting, filtering, and future processing logic
- 🧠 **Reworked Storage Controller** – now serves as the centralized access point with improved synchronization
- 🛠️ **Linking Tool** – rebuilt for stable connection logic and simpler linking flow
#### ⚙️ Network System
- Rewritten using Fabric’s **`PayloadTypeRegistry`** API for both C2S and S2C packets
- Added new **packet payloads** for:
- Sorting mode changes (`SortModeChangePayload`)
- Filter category updates (`FilterCategoryChangePayload`)
- Deposit, extraction, and synchronization requests
- Removed legacy packet handling — all network traffic now uses modern, stable handlers
- Improved multiplayer synchronization and reduced desync issues
#### 🧩 Gameplay & Features
- New **category-based filtering system**, managed by the `CategoryManager` reload listener
- Updated **screen handler logic** for real-time network updates (`StorageControllerScreenHandler`)
- Added **ExtractionRequest**, **DepositRequest**, and **SyncRequest** handling with server-safe context execution
- Built-in **Sort Mode toggle** directly through GUI
- Foundation for **advanced automation logic** (Process Probe feature)
#### 🎨 Creative Tab Integration
- Added a custom creative tab `itemGroup.smartsorter`
- Includes: Storage Controller, Intake, Output Probe, and Linking Tool
- Uses the new Fabric v1 Item Group API for flexible ordering and display
#### 🧰 Registry Cleanup & Refactor
- All registries use modern `Identifier.of(MOD_ID, name)` pattern
- Consolidated block and item registration into clear modular methods:
- `registerBlocks()`, `registerBlockItems()`, `registerBlockEntities()`, `registerScreenHandlers()`, `registerTools()`
- Improved logging structure with informative lifecycle output
- Removed deprecated calls and simplified init process
#### 🧠 Architecture & Optimization
- Simplified init order for better readability and maintainability
- All data (controller links, probes, filters) safely serialized into world files
- Modularized network handler registration
- Better separation between **client → server** and **server → client** sync events
- Performance improved in large networks with hundreds of inventories
#### 🧪 Developer Notes
- Introduced **FeatureSet.empty()** for safe ScreenHandler registration
- Server handlers now use `context.server().execute()` for thread-safe access
- Networking rewritten to comply with Minecraft 1.21+ Fabric API standards
- Full migration away from legacy `ServerPlayNetworking.registerReceiver` calls
---
**Next Planned Update (v2.1.0):**
- 🧮 Configurable chest priorities
- ⚙️ Enhanced Process Probe logic (basic crafting automation)
- 🌍 Cross-dimensional access and wireless network expansion
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }