Stacknator
Stacknator 是一款轻量级的 Fabric Minecraft 模组,允许你通过一个简单的配置文件自定义任何原版或模组物品的最大堆叠数量。通过在游戏初始化期间修改物品数据组件,Stacknator 提供了解决方案,无需性能开销或黑客手段。
兼容性
- 必需: Fabric API
- 原版物品: 完全兼容。
- 模组物品: 通常与大多数模组兼容。
标签: 通过 Filler 功能支持。
提示: 要查找物品的标识符,在游戏中按 F3 + H 启用高级工具提示,然后将鼠标悬停在物品上。
安装
- 将 Stacknator
.jar放入mods文件夹中。 - 启动服务器或加载到世界中。
- 编辑 stacknator.json 配置文件以设置所需的堆叠大小。
- 享受吧!
仅在
survival游戏的服务器端需要,但建议在客户端也安装以保持与某些屏幕(例如创造模式界面)的完全兼容。
文档
- enabled:
启用或禁用模组。
类型:boolean默认值:true - log_modified_items:
切换成功更改堆叠大小的日志记录(其他日志始终显示)。
类型:boolean默认值:true - checks:
定义要执行的检查。
类型:object默认值:
- enable_checks:
启用或禁用所有检查。
类型:boolean默认值:true - check_damageable:
启用或禁用可损坏性检查。
类型:boolean默认值:true - check_stackable:
启用或禁用可堆叠性检查。
类型:boolean默认值:false - check_minimum_stack_size:
启用或禁用最小堆叠大小检查。
类型:boolean默认值:true - check_maximum_stack_size:
启用或禁用最大堆叠大小检查。
类型:boolean默认值:true
- enable_checks:
- remove_defaults:
移除所有匹配默认堆叠大小的物品条目。
类型:boolean默认值:false - filler:
定义填充器设置。
类型:object默认值:{}
- enable_filler:
启用或禁用填充器。启用时,模组将遍历所有注册的物品并将填充器规则应用于每个物品,同时强制执行配置的检查。
类型:boolean默认值:false - reset_stacks:
启用或禁用将堆叠大小重置为默认值,覆盖任何定义的自定义堆叠大小。
类型:boolean默认值:false - run_once:
在一次运行后禁用填充器。
类型:boolean默认值:true - tag_priority:
启用或禁用在应用填充器时将标签优先级置于物品条目之上。
类型:boolean默认值:true - tags:
定义标签标识符及其自定义堆叠大小。
类型:object默认值:{}
- enable_filler:
- sort_items:
启用或禁用按键名对物品条目进行字母排序。
类型:boolean默认值:true - items:
定义物品标识符及其自定义堆叠大小。
类型:object默认值:{}
检查
Stacknator 对配置文件中每个物品/标签条目执行以下检查:
- Entry Key Format:
验证条目键是否遵循namespace:item格式。
失败时:跳过该条目。 - Item Damageable:
确保物品不可损坏(例如工具、武器和盔甲)。
失败时:跳过该条目。 - Item Stackable:
确认物品可堆叠(默认最大堆叠数大于 1)。
失败时:跳过该条目。 - Entry Value Below 1:
检查堆叠大小是否小于 1。
失败时:跳过该条目。 - Entry Value Above 99:
检查堆叠大小是否超过 99。
失败时:调整为 99。
完整配置示例
{
"enabled": true,
"log_modified_items": true,
"checks": {
"enable_checks": true,
"check_damageable": true,
"check_stackable": false,
"check_minimum_stack_size": true,
"check_maximum_stack_size": true
},
"remove_defaults": false,
"filler": {
"enable_filler": false,
"reset_stacks": false,
"run_once": true,
"tag_priority": true,
"tags": {
"#minecraft:logs": 16,
"#minecraft:planks": 32
}
},
"sort_items": true,
"items": {
"minecraft:egg": 64,
"minecraft:red_bed": 16,
"minecraft:ender_pearl": 32,
"minecraft:tnt": 1
}
}
Stacknator
Stacknator is a lightweight Minecraft mod for Fabric that lets you customize the maximum stack size of any vanilla or modded item via a simple configuration file. By modifying item data components during game initialization, Stacknator delivers a clean, efficient solution without performance overhead or hacky workarounds.
Compatibility
- Required: Fabric API
- Vanilla Items: Fully compatible.
- Modded Items: Generally compatible with most mods.
Tags: Supported through the Filler feature.
Tip: To find an item's identifier, enable Advanced Tooltips in-game by pressing F3 + H, then hover over the item.
Installation
- Drop the Stacknator
.jarinto yourmodsfolder. - Start the server or load into a world.
- Edit the stacknator.json config file to set your desired stack sizes.
- Enjoy!
Required only on the server side for a
survivalgameplay, however it's recommended to have it on the client side as well to be fully compatible with some screens (e.g. creative screen).
Documentation
- enabled:
Enables or disables the mod.
Type:booleanDefault:true - log_modified_items:
Toggles logging of successful stack size changes (other logs always show).
Type:booleanDefault:true - checks:
Defines the checks to be performed.
Type:objectDefault:
- enable_checks:
Enables or disables all checks.
Type:booleanDefault:true - check_damageable:
Enables or disables the damageable check.
Type:booleanDefault:true - check_stackable:
Enables or disables the stackable check.
Type:booleanDefault:false - check_minimum_stack_size:
Enables or disables the minimum stack size check.
Type:booleanDefault:true - check_maximum_stack_size:
Enables or disables the maximum stack size check.
Type:booleanDefault:true
- enable_checks:
- remove_defaults:
Removes all item entries that match the default stack size.
Type:booleanDefault:false - filler:
Defines the filler settings.
Type:objectDefault:{}
- enable_filler:
Enables or disables the filler. When enabled, the mod will iterate all registered items and apply the filler rules to each item while enforcing the configured checks.
Type:booleanDefault:false - reset_stacks:
Enables or disables resetting of stack sizes to the default values, overriding any defined custom stack size.
Type:booleanDefault:false - run_once:
Disables the filler after one run.
Type:booleanDefault:true - tag_priority:
Enables or disables prioritizing tags over item entries when applying the filler.
Type:booleanDefault:true - tags:
Defines tag identifiers and their custom stack sizes.
Type:objectDefault:{}
- enable_filler:
- sort_items:
Enables or disabled sorting the item entries alphabetically by their keys.
Type:booleanDefault:true - items:
Defines item identifiers and their custom stack sizes.
Type:objectDefault:{}
Checks
Stacknator performs the following checks for each item/tag entry in the config file:
- Entry Key Format:
Verifies if the entry key follows thenamespace:itemformat.
On Failure: Skips the entry. - Item Damageable:
Ensures the item is not damageable (e.g. tools, weapons and armor).
On Failure: Skips the entry. - Item Stackable:
Confirms the item is stackable (default maximum stack above 1).
On Failure: Skips the entry. - Entry Value Below 1:
Checks if the stack size is less than 1.
On Failure: Skips the entry. - Entry Value Above 99:
Checks if the stack size exceeds 99.
On Failure: Adjusts to 99.
Full Configuration Example
{
"enabled": true,
"log_modified_items": true,
"checks": {
"enable_checks": true,
"check_damageable": true,
"check_stackable": false,
"check_minimum_stack_size": true,
"check_maximum_stack_size": true
},
"remove_defaults": false,
"filler": {
"enable_filler": false,
"reset_stacks": false,
"run_once": true,
"tag_priority": true,
"tags": {
"#minecraft:logs": 16,
"#minecraft:planks": 32
}
},
"sort_items": true,
"items": {
"minecraft:egg": 64,
"minecraft:red_bed": 16,
"minecraft:ender_pearl": 32,
"minecraft:tnt": 1
}
}
下载 Stacknator
下载 Stacknator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stacknator
下载 Stacknator
下载 Stacknator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stacknator
下载 Stacknator
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Stacknator
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧