Sensible Stackables
此模组允许增加物品的堆叠上限,同时提供平衡的默认值:
- 药水:3
- 鞍:16
- 挽具:16
- 船:16
- 矿车:16
- 床:16
- 炖菜和汤:16
- 附魔书:64
- 末影珍珠:64
- 雪球:64
- 鸡蛋:64
- 马铠:64
- 音乐唱片:64
- 旗帜图案:64
- 蛋糕:16
此外,喷溅型和滞留型药水拥有 1 秒的使用冷却时间,以防止频繁投掷药水的滥用行为;多个界面也已修补以支持物品堆叠。
该模组还可用于解除原版堆叠上限限制,并设置任意你需要的数值,请参阅下方的说明。
配置
建议使用游戏内的配置界面来配置此模组,因为其中包含带有自动补全功能的物品建议,并且大多数选项都通过工具提示进行了说明。
也可以通过编辑 config/sensible_stackables 文件夹中的 .toml 文件手动配置此模组。
配置支持为单个物品或物品标签定义堆叠大小,例如:
- 添加
"minecraft:totem_of_undying" 并将值设为 16,将允许不死图腾最多堆叠至 16 个
- 添加
"#minecraft:banners" 并将值设为 64,将允许所有旗帜类物品最多堆叠至 64 个(# 表示这是一个物品标签)
- 添加
"#c:buckets" 并将值设为 64,将允许所有类型的桶最多堆叠至 64 个(c 是通用标签的命名空间,可在此处查看可用的通用标签 here)
- 添加
"#sensible_stackables:all_block_items" 并将值设为 1,将使所有方块仅能堆叠至 1 个(此模组提供的动态标签,仅在 3.0.0 及以上版本中可用)
解除最大堆叠上限
在模组配置中将 uncapStackSize(GUI 配置中显示为 "Uncap stack size")设置为 true,将允许为物品设置超过 64 的堆叠大小,并应用必要的补丁以防止大堆叠数量引发的错误。当物品数量大于 999 时,GUI 和物品工具提示中会缩短显示数量,但工具提示仍会显示堆叠的精确物品数量。
随后可将 commonStackSize(GUI 配置中显示为 "Common stack size")从 64 提高到一个更高的值,从而为所有使用默认堆叠大小的物品设置一个“全局”最大堆叠大小。不使用默认堆叠大小的物品(如药水、船、附魔书等)仍需手动定义其堆叠大小。
为了与 Reliable Recount 等模组兼容,可以切换开启或关闭物品数量显示的更改功能,包括缩短显示、缩放以及物品数量工具提示。
警告:虽然理论上你可以将所有物品的最大堆叠大小设置为约 21 亿,但使用超过 100,000 的数值可能会导致性能问题。例如,同时合成 100,000+ 件物品或从切石机中取出 100,000+ 件物品会使游戏暂时冻结(5-20 秒)。我已将此模组的常见堆叠大小测试设置为 32,768,此时性能仍然合理。请自行承担使用更高数值的風險!
Sensible Stackables
This mod allows increasing the stack size of items, while providing balanced defaults:
- Potions: 3
- Saddle: 16
- Harness: 16
- Boats: 16
- Minecarts: 16
- Beds: 16
- Stews and soups: 16
- Enchanted books: 64
- Ender pearls: 64
- Snowball: 64
- Egg: 64
- Horse armor: 64
- Music discs: 64
- Banner patterns: 64
- Cake: 16
Additionally, splash and lingering potions have a 1-second use cooldown to prevent potion throwing spam, and several menus have been patched to support stacks of items.
The mod can also be used to uncap the vanilla stack size limit and set any value you want, read below for instructions.
Configuration
It's recommended to use the in-game config screen to configure the mod, as there are item suggestions with auto-completion and most things are explained via tooltips.
The mod can also be configured manually by editing .toml files in inside the config/sensible_stackables folder.
The configuration supports defining stack sizes for either single items or item tags, for example:
- Adding
"minecraft:totem_of_undying" with value 16 will allow stacking totems up to 16
- Adding
"#minecraft:banners" with value 64 will allow stacking banners up to 64 (# indicates to the mod that this is an item tag)
- Adding
"#c:buckets" with value 64 will allow stacking all types of buckets up to 64 (c is the namespace for conventional tags, see available conventional tags here)
- Adding
"#sensible_stackables:all_block_items" with value 1 will make all blocks stack up to 1 only (dynamic tag provided by this mod, only in version 3.0.0 and above)
Uncapping max stack size
Setting uncapStackSize ("Uncap stack size" in GUI config) to true in the mod configuration will allow setting stack sizes above 64 to items and apply necessary patches to prevent bugs with large stack sizes. Item counts larger than 999 will be shortened in the GUI and the item tooltip will display the exact item count of the stack.
commonStackSize ("Common stack size" in GUI config) can then be increased from 64 to a higher value to set a "global" max stack size for all items which use the default stack size. Stack sizes for items which don't use the default stack size (such as potions, boats, enchanted books etc.) still need to be defined manually.
Item count display changes, such as shortening, scaling and the item count tooltip, can be toggled on and off for compatibility with mods like Reliable Recount.
WARNING: While theoretically you can set max stack sizes for everything up to around 2.1 billion, using sizes larger than 100000 can cause performance issues. For example crafting 100000+ items at the same time or taking out 100000+ items from the stonecutter will freeze the game for a while (5-20 seconds). I've tested the mod with common stack size set to 32768 and performance was still reasonable. USE HIGHER VALUES AT YOUR OWN RISK!
评论 0
登录后参与评分
还没有评论,来抢沙发吧