📦 Stack Size Adjuster
“解放你的背包。可配置的堆叠上限,搭配高性能掉落保护与动态字体缩放。”
📖 简介
Minecraft 标准的 64 物品堆叠上限确立于 15 多年前,当时游戏中只有寥寥无几的方块和合成配方。在现代生存模式中,建造大型建筑、大规模地形改造或整理大型储物间,往往让库存管理变成令人头疼的琐事——几十个箱子、无尽的搬运行程。
Stack Size Adjuster 在 即时满足(Instant Gratification) 的设计理念下解决这一库存瓶颈。它通过实时网络同步、客户端自动缩放数字以及容器掉落延迟预防,跨自然物品类别(64 堆叠物品、16 堆叠物品和 1 堆叠物品)动态扩展全服物品堆叠上限。
[!NOTE] 一版本一 JAR 策略: 我为每个 Minecraft 版本构建 一个专用的 JAR 文件(例如 1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3+)。请下载与你 Minecraft 安装版本完全匹配的版本。
服务端与客户端架构: 在服务端(或单人游戏世界)安装以启用自定义堆叠逻辑。安装了该模组的客户端将受益于库存槽位中的动态字体自动缩放以及即时 GameRule 同步!
属于 Instant Gratification Collection 的一部分 —— 旨在简化你的游戏体验并尊重你时间的模组合集。
✨ 特性
🚀 基于类别的堆叠扩展
- 64-堆叠物品(默认:128): 将建筑方块、矿石、锭、木材和标准资源的堆叠上限扩展至任意整数。
- 16-堆叠物品(默认:32): 将原本自然限制为 16 堆叠的工具类物品(末影珍珠、雪球、桶、告示牌、鸡蛋)的堆叠上限扩展至 32,同时不破坏其身份标识。
- 1-堆叠物品(默认:1): 默认保持为 1,以确保工具、武器和盔甲保留标准行为。如果需要,服务器管理员可以随时解除此类别的限制。
- 无限制的自由: 支持高达 2,147,483,647(Integer.MAX_VALUE)的堆叠大小,遵循“自由优先于防崩溃”的设计原则。
🛡️ 容器掉落延迟保护
- 在原版中,破坏包含数千物品的箱子通常会生成数百甚至数千个独立的物品实体,导致严重的 TPS 下降或客户端卡顿。
- 集群掉落系统: 智能地将掉落的物品分组到受控数量的物品实体中(每个库存槽位由
max_drop_entities控制,默认为 8),在保持完整物品数量的同时确保服务器性能流畅。
🔤 动态库存字体缩放
- 拥有 3 位、4 位或更多位数的数字(如 128、999 或 9999)通常会溢出 16x16 库存槽位的边界。
- 客户端渲染器会计算文本宽度,并动态缩小高计数的数字,使其整齐且清晰地显示在物品槽内。
⚡ 实时网络同步与容器刷新
- 当玩家加入或管理员更改 GameRules 时,堆叠限制会通过自定义网络数据包自动同步。
- 打开容器和库存界面时会立即刷新更新后的限制,无需重启服务器或玩家重新登录。
🧩 插件生态系统兼容性
- 内置 API 钩子允许专门的配套模组注册专用的单物品覆盖设置:
- Potion Stacker Addon: 使可饮用药水、喷溅药水、滞留药水、水瓶和汤能够堆叠。
- Stew Stacker Addon: 使蘑菇炖菜、兔子炖菜、甜菜根炖菜和可疑炖菜能够堆叠。
⚙️ 原生 GameRules 与配置
可以使用原版 GameRules 实时调整堆叠上限:
| GameRule Key | 类型 | 默认值 | 有效范围 | 描述 |
|---|---|---|---|---|
stack-size-adjuster:items_64_limit |
Integer |
128 |
1 – 2,147,483,647 |
自然堆叠为 64 的物品最大堆叠大小。 |
stack-size-adjuster:items_16_limit |
Integer |
32 |
1 – 2,147,483,647 |
自然堆叠为 16 的物品最大堆叠大小。 |
stack-size-adjuster:items_1_limit |
Integer |
1 |
1 – 2,147,483,647 |
自然堆叠为 1 的物品最大堆叠大小。 |
stack-size-adjuster:max_drop_entities |
Integer |
8 |
1 – 64 |
容器被破坏时每个槽位生成的最大物品实体数量。 |
🖥️ 游戏内配置界面(ModMenu & YACL)
如果安装了 ModMenu 和 YetAnotherConfigLib (YACL),你可以直接从客户端主菜单或模组菜单中配置这些选项:
- 配置文件:
config/stack-size-adjuster.json(作为新创建世界的基线默认值)。
☕ 支持与创作者社区
我是一名独立单人开发者,致力于制作轻量级、增强原版的模组。如果 Stack Size Adjuster 让你的生存体验更加愉快,请考虑支持未来的开发:
[!TIP] 🇮🇩 印尼本地支付说明: 印尼的支持者可以通过 Saweria 或 SocioBuzz 使用 GoPay、OVO、Dana、QRIS、LinkAja 直接支持我的工作!
加入我的官方 Discord 社区,获取开发更新、测试版本和反馈:
- 💬 Discord 社区:
📜 元数据与权限
| 属性 | 值 |
|---|---|
| 模组名称 | Stack Size Adjuster |
| 命名空间 / Mod ID | stack-size-adjuster |
| 许可证 | GNU 通用公共许可证 v3.0 (GPLv3) |
| 端安全 | 服务端与客户端(网络同步) |
| 必需依赖 | Fabric API, Dasik Library |
| 可选依赖 | ModMenu, YetAnotherConfigLib (YACL) |
| 源代码 | GitHub 仓库 |
| 问题追踪器 | GitHub Issues |
[!IMPORTANT] 📦 整合包权限与分发:
你完全可以将此模组包含在任何整合包中!模组文件必须通过官方分发渠道(Modrinth 或 CurseForge)直接下载。严禁将 JAR 文件重新上传或镜像到第三方爬虫网站或未授权的启动器。
⚖️ 许可证与分支指南(禁止无变更的重新上传):
本项目基于 GNU GPLv3 开源。你可以自由查看代码、从中学习,并在适当署名且遵循 GPLv3 的前提下进行真正的修改或添加实质性功能以创建分支。
严格禁止 1:1 的直接重新上传、未增加有意义功能变化的克隆分支,或以不同项目名称重新发布相同构建版本的行为。
为 Minecraft 社区 ❤️ 打造
Instant Gratification Collection 系列的一部分
📦 Stack Size Adjuster
"Unshackle Your Inventory. Configurable Stack Limits with High-Performance Drop Protection & Dynamic Font Scaling."
📖 Introduction
Minecraft's standard 64-item stack ceiling was established over 15 years ago when the game had only a handful of blocks and crafting recipes. In modern survival, building large structures, massive terraforming projects, or sorting large storage rooms turns inventory management into a chore of dozens of chests and endless hauling trips.
Stack Size Adjuster solves the inventory bottleneck under the Instant Gratification design philosophy. It dynamically expands item stack limits server-wide across natural item categories (64-stack items, 16-stack items, and 1-stack items) with real-time network synchronization, client-side auto-scaling numbers, and container drop lag prevention.
[!NOTE] 1 Jar 1 Version Policy: I build 1 dedicated JAR for each Minecraft version (e.g. 1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3+). Please download the exact build that matches your Minecraft installation.
Server & Client Architecture: Install on the server (or singleplayer world) to enable custom stack logic. Clients with the mod installed will benefit from dynamic font auto-scaling in inventory slots and instant GameRule sync!
Part of the Instant Gratification Collection — mods designed to streamline your gameplay and respect your time.
✨ Features
🚀 Category-Based Stack Expansion
- 64-Stack Items (Default: 128): Expands building blocks, ores, ingots, wood, and standard resources up to any integer limit.
- 16-Stack Items (Default: 32): Expands utility items that naturally cap at 16 (ender pearls, snowballs, buckets, signs, eggs) without breaking their identity.
- 1-Stack Items (Default: 1): Kept at 1 by default to ensure tools, weapons, and armor retain standard behavior. Server owners can uncap this category at any time if desired.
- Uncapped Freedom: Supports stack sizes up to 2,147,483,647 (Integer.MAX_VALUE), adhering to the Freedom Over Anti-Crash design principle.
🛡️ Container Drop Lag Protection
- Breaking a chest containing thousands of items in vanilla would normally spawn hundreds or thousands of individual item entities, creating severe TPS drops or client stutter.
- Cluster Drop System: Intelligently groups dropped items into a controlled number of item entities per inventory slot (governed by
max_drop_entities, default 8), preserving full item quantities while keeping server performance smooth.
🔤 Dynamic Inventory Font Scaling
- Numbers with 3, 4, or more digits (like 128, 999, or 9999) normally overflow outside the 16x16 inventory slot boundary.
- The client-side renderer calculates text width and dynamically scales down high-count numbers so they fit cleanly and legibly inside the item slot.
⚡ Real-Time Network Sync & Container Refresh
- Stack limits synchronize automatically via custom network payloads whenever a player joins or an admin changes GameRules.
- Open container and inventory screens immediately refresh with the updated limits without requiring a server reboot or player relog.
🧩 Addon Ecosystem Compatibility
- Built-in API hooks allow specialized companion mods to register dedicated per-item overrides:
- Potion Stacker Addon: Stacks drinkable, splash, and lingering potions, water bottles, and stews.
- Stew Stacker Addon: Stacks mushroom stews, rabbit soups, beetroot soups, and suspicious stews.
⚙️ Native GameRules & Configuration
Stack limits can be adjusted in real time using vanilla GameRules:
| GameRule Key | Type | Default | Valid Range | Description |
|---|---|---|---|---|
stack-size-adjuster:items_64_limit |
Integer |
128 |
1 – 2,147,483,647 |
Maximum stack size for items that naturally stack to 64. |
stack-size-adjuster:items_16_limit |
Integer |
32 |
1 – 2,147,483,647 |
Maximum stack size for items that naturally stack to 16. |
stack-size-adjuster:items_1_limit |
Integer |
1 |
1 – 2,147,483,647 |
Maximum stack size for items that naturally stack to 1. |
stack-size-adjuster:max_drop_entities |
Integer |
8 |
1 – 64 |
Maximum item entities spawned per slot when a container breaks. |
🖥️ In-Game Configuration Screen (ModMenu & YACL)
If ModMenu and YetAnotherConfigLib (YACL) are installed, you can configure these options directly from the client title screen or mods menu:
- Config file:
config/stack-size-adjuster.json(acts as baseline defaults for newly generated worlds).
☕ Support & Creator Community
I am an independent solo developer creating lightweight, vanilla-enhancing mods. If Stack Size Adjuster makes your survival experience more enjoyable, consider supporting future development:
[!TIP] 🇮🇩 Indonesian Local Payment Note: Indonesian supporters can support my work directly via Saweria or SocioBuzz using GoPay, OVO, Dana, QRIS, LinkAja!
Join my official Discord community for development updates, test builds, and feedback:
- 💬 Discord Community:
📜 Metadata & Permissions
| Property | Value |
|---|---|
| Mod Name | Stack Size Adjuster |
| Namespace / Mod ID | stack-size-adjuster |
| License | GNU General Public License v3.0 (GPLv3) |
| Side Safety | Server & Client (Network Synchronized) |
| Required Dependencies | Fabric API, Dasik Library |
| Optional Dependencies | ModMenu, YetAnotherConfigLib (YACL) |
| Source Code | GitHub Repository |
| Issue Tracker | GitHub Issues |
[!IMPORTANT] 📦 Modpack Permissions & Distribution:
You are fully welcome to include this mod in any modpack! The mod file must be downloaded directly through official distribution channels (Modrinth or CurseForge). Re-uploading or mirroring the JAR to third-party scraper sites or unauthorized launchers is strictly prohibited.
⚖️ License & Fork Guidelines (No Zero-Change Re-uploads):
This project is open-source under the GNU GPLv3. You are free to inspect the code, learn from it, and fork it for genuine modifications or substantial feature additions under GPLv3 with proper attribution.
Straight 1:1 re-uploads, clone forks without meaningful functional additions, or re-publishing identical builds under different project names are strictly forbidden.
Made with ❤️ for the Minecraft community
Part of the Instant Gratification Collection
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
下载 IG: Stack Size Adjuster
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧