Unlimited Stacks
原版将物品堆叠上限设为 99。此模组将其提升至 1,073,741,823。
无需配置。无需指令。无需图形界面。安装后便可遗忘它。
原版的问题
Minecraft 在三个不同的位置强制执行堆叠限制。大多数声称移除该限制的模组仅修复其中一或两处,这意味着超过 99 的堆叠会出现以下情况:
- 在游戏中显示正常,但在世界保存/重新加载时静默自我删除
- 显示正确的数量,但无法放入容器中
- 正常运行直到你重新登录,然后消失
此模组修复了所有这三个问题。
实际更改内容
1. 物品堆叠上限
在所有非耐久物品的物品级别覆盖 getMaxStackSize()。这控制着你的背包中堆叠能增长到的最大高度。
2. 容器槽位上限
在容器接口级别覆盖 getMaxStackSize()。如果没有此项,当你在不同背包之间移动物品时,槽位会静默地将堆叠钳制回旧的上限。
3. Codec 范围补丁
这是大多数模组遗漏的修复。原版在类加载时直接将 intRange(1, 99) 验证 codec 烘焙到 ItemStack.MAP_CODEC 中。任何超过 99 的堆叠计数都会在此验证中失败,并在世界保存时被静默丢弃。此模组拦截该 codec 调用,并将接受范围扩展以匹配新的上限。
如果没有 codec 补丁,超过 99 的堆叠在世界保存时会消失。
耐久物品
工具、武器和盔甲被有意排除在外。它们本身就无法堆叠,并且为它们设置堆叠大小会触发 Minecraft 内部的“物品不能既是耐久物品又是可堆叠物品”错误。其他所有物品(包括方块、食物、材料、杂项物品)都获得完整上限。
堆叠上限
上限设置为 Integer.MAX_VALUE / 2 = 1,073,741,823。
该值在所有三个补丁中保持一致使用,以确保物品允许的数量、容器允许的数量以及保存 codec 接受的数量之间没有不匹配。
使用场景
- 运行掉落倍率模组的生存或 SMP 服务器
- 需要大量物品数量的创造模式或管理员世界
- 任何原版 99 物品上限成为瓶颈的设置
兼容性
|
|
| Minecraft |
26.1.2 |
| 加载器 |
Fabric 0.19.2+ |
| API |
需要 Fabric API |
| 端侧 |
客户端和服务端均需安装 |
| Java |
25+ |
客户端和服务端都需要安装此模组。Codec 补丁在两端类加载时运行。如果仅在服务端安装,会导致客户端显示错误的堆叠数量。
Unlimited Stacks
Vanilla caps item stacks at 99. This mod raises that to 1,073,741,823.
No config. No commands. No GUI. Install it and forget about it.
The Problem With Vanilla
Minecraft enforces the stack limit in three separate places. Most mods that claim to remove the cap only fix one or two of them, which means stacks above 99 either:
- Display in-game but silently delete themselves on world save/reload
- Show the right count but can't be placed into containers
- Work fine until you relog, then vanish
This mod fixes all three.
What It Actually Changes
1. Item stack limit
Overrides getMaxStackSize() on all non-damageable items at the item level. This is what controls how high a stack can grow in your inventory.
2. Container slot limit
Overrides getMaxStackSize() at the container interface level. Without this, slots silently clamp stacks back to the old limit when you move items between inventories.
3. Codec range patch
This is the fix most mods miss. Vanilla bakes a intRange(1, 99) validation codec directly into ItemStack.MAP_CODEC at class-load time. Any stack count above 99 fails this validation and is silently discarded when the world saves. This mod intercepts that codec call and expands the accepted range to match the new limit.
Without the codec patch, stacks above 99 disappear when the world saves.
Damageable Items
Tools, weapons, and armour are intentionally excluded. They can't be stacked regardless, and setting a stack size on them triggers Minecraft's internal "item cannot be both damageable and stackable" error. Everything else gets the full limit: blocks, food, materials, misc items.
Stack Limit
The limit is set to Integer.MAX_VALUE / 2 = 1,073,741,823.
This value is used consistently across all three patches so there are no mismatches between what the item allows, what the container allows, and what the save codec accepts.
Use Cases
- Survival or SMP servers running drop multiplier mods
- Creative or admin worlds where large item counts are needed
- Any setup where vanilla's 99-item cap is a bottleneck
Compatibility
|
|
| Minecraft |
26.1.2 |
| Loader |
Fabric 0.19.2+ |
| API |
Fabric API required |
| Side |
Required on both client and server |
| Java |
25+ |
Both client and server need the mod installed. The codec patch runs at class-load time on both sides. A server-only install will cause the client to show wrong stack counts.
评论 0
登录后参与评分
还没有评论,来抢沙发吧