-
Notifications
You must be signed in to change notification settings - Fork 0
Behavior Profiles and Conditions
Dasik (Rifaditya) edited this page Aug 9, 2026
·
1 revision
Stack Size Adjuster operates under a state machine that bridges world configuration, dynamic GameRules, and network packets across server and client boundaries.
+----------------------------------+
| Server Startup / World Creation |
+----------------------------------+
|
v
[ Load Baseline Config Template ]
(`config/stack-size-adjuster.json`)
|
v
[ Register Dynamic GameRules ]
(`items_64_limit`, `items_16_limit`, etc.)
|
+---------------+---------------+
| |
Newly Created World Existing Loaded World
| |
v v
Apply Config Defaults to Rules Load GameRules from `level.dat`
| |
+---------------+---------------+
|
v
[ Initialize Active StackSizeManager ]
|
v
[ Player Join Event / GameRule Edit ]
|
v
[ Dispatch S2C Packet: sync_limit ]
|
v
[ Force Client Menu State Refresh ]
-
Server Initialization (
ServerLifecycleEvents.SERVER_STARTED):- Reloads baseline config file.
- If world is newly created (
!overworldData.isInitialized()), populates world GameRules from baseline config. - Initializes
StackSizeManagerlimits from current world GameRules.
-
Player Connect (
ServerPlayConnectionEvents.JOIN):- Sends initial
StackSizeLimitSyncPayloadto joining player.
- Sends initial
-
In-Game Rule Modification (
MinecraftServerMixin.onGameRuleChanged):- Detects changes to
stack-size-adjuster:*GameRules. - Updates
StackSizeManagervolatile fields. - Broadcasts updated limits to all online players and triggers
broadcastFullState().
- Detects changes to
๐ Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.
Copyright ยฉ 2026 Dasik (Rifaditya). Licensed under the GNU General Public License v3.0 (GPLv3).
๐ Home
- Dynamic GameRules
- Category Stack Limits
- Container Drop Optim.
- Large Chest Overflow
- ModMenu & YACL Config
- Item Count Rendering
- Item Clumps Synergies
- Troubleshooting & FAQ
- Developer Setup
- Architecture Layout
- Mixin Reference
- Addon Override API
- Network Sync Protocol
- Give Command Handling
- Behavior Profiles
- Consumer Mods Guide
- Performance Impact
- Advancements Matrix
- Author: Dasik (Rifaditya)
- License: GPL-3.0-or-later