物品堆叠
允许你更改 Minecraft 中任意物品的最大堆叠数量。
功能特性
- 针对单个物品的堆叠数量覆盖
- 针对标签(Tag)的堆叠数量覆盖
- 精确的物品规则优先于标签规则
- 将物品或标签重置为其默认堆叠数量
- 提供用于编辑、列出、保存和重载规则的游戏中命令
- 支持超过 99 的堆叠数量
- 通过 Mod Menu 进行配置编辑
- 在仅服务端使用时,配合原版客户端可实现大多数正常的库存行为
依赖要求
- Fabric Loader
- Fabric API
- owo-lib
推荐使用 Mod Menu,但非必需。
配置说明
配置文件路径为:
config/items-stack-size-config.json5
如果安装了 Mod Menu,你可以通过生成的配置界面来编辑配置。
规则以列表形式存储,格式如下:
item_or_tag=value
示例:
minecraft:ender_pearl=64
minecraft:potion=16
#minecraft:boats=32
若要将某个物品或标签强制恢复为 Minecraft 默认的堆叠数量,请使用:
default
例如:
minecraft:oak_boat=default
配置示例
{
"overrides": [
"minecraft:potion=8",
"minecraft:stone=32",
"#minecraft:boats=16",
"#c:tools=4"
]
}
规则优先级
精确的物品规则始终优先于标签规则。
对于相同类型的规则,后出现的规则会覆盖先出现的规则。
例如:
#minecraft:logs=64
minecraft:oak_log=32
这将导致:
minecraft:oak_log的最大堆叠数量为32#minecraft:logs中的其他物品最大堆叠数量为64
命令
所有命令均需操作员权限。
设置规则
/itemsstack set <item|#tag> <count>
示例:
/itemsstack set minecraft:ender_pearl 128
/itemsstack set #minecraft:logs 96
移除规则
/itemsstack remove <item|#tag>
移除完全匹配的物品或标签规则。
重置为默认值
/itemsstack reset <item|#tag>
添加一条 default 规则,使选定的物品或标签使用其正常堆叠数量。
清空规则
/itemsstack clear
/itemsstack clear items
/itemsstack clear tags
列出规则
/itemsstack list
/itemsstack list items
/itemsstack list tags
/itemsstack list <page>
你还可以更改当前会话中每页显示多少条规则:
/itemsstack list size
/itemsstack list size <count>
保存配置
/itemsstack save
将当前内存中的配置保存到磁盘。
重载配置
/itemsstack reload
丢弃未保存的更改并从磁盘重新加载配置。
帮助
/itemsstack help
保存行为
通过命令或 Mod Menu 配置界面所做的更改会立即生效。
它们不会自动保存到磁盘。
请使用:
/itemsstack save
将其永久保存。
请使用:
/itemsstack reload
来丢弃未保存的更改并重新加载已保存的配置。
兼容性
本模组旨在同时安装在客户端和服务端。
你也可以仅在服务端安装,配合原版客户端以实现大多数正常的库存行为。
部分客户端行为,尤其是创造模式下的库存交互和自定义堆叠数量渲染,需要客户端也安装此模组。
注意事项
具有不同组件、耐久度或其他堆叠数据的物品,仍会根据 Minecraft 正常的堆叠规则保持独立。
显式的每个堆叠 MAX_STACK_SIZE 组件更改优先于本模组的配置。
Items Stack
Allows you to change the maximum stack size of any item in Minecraft.
Features
- Per-item stack size overrides
- Per-tag stack size overrides
- Exact item rules override tag rules
- Reset items or tags back to their default stack size
- In-game commands for editing, listing, saving, and reloading rules
- Stack sizes above 99
- Config editing through Mod Menu
- Server-only usage with vanilla clients for most normal inventory behavior
Requirements
- Fabric Loader
- Fabric API
- owo-lib
Mod Menu is recommended, but not required.
Configuration
The config file is:
config/items-stack-size-config.json5
If Mod Menu is installed, you can edit the config through the generated config screen.
Rules are stored in a single list using this format:
item_or_tag=value
Examples:
minecraft:ender_pearl=64
minecraft:potion=16
#minecraft:boats=32
To force an item or tag back to its normal Minecraft stack size, use:
default
For example:
minecraft:oak_boat=default
Example config
{
"overrides": [
"minecraft:potion=8",
"minecraft:stone=32",
"#minecraft:boats=16",
"#c:tools=4"
]
}
Rule Priority
Exact item rules always override tag rules.
For rules of the same type, later rules override earlier rules.
For example:
#minecraft:logs=64
minecraft:oak_log=32
This gives:
minecraft:oak_loga maximum stack size of32- other items in
#minecraft:logsa maximum stack size of64
Commands
All commands require operator permission.
Set a rule
/itemsstack set <item|#tag> <count>
Examples:
/itemsstack set minecraft:ender_pearl 128
/itemsstack set #minecraft:logs 96
Remove a rule
/itemsstack remove <item|#tag>
Removes the exact matching item or tag rule.
Reset to default
/itemsstack reset <item|#tag>
Adds a default rule so the selected item or tag uses its normal stack size.
Clear rules
/itemsstack clear
/itemsstack clear items
/itemsstack clear tags
List rules
/itemsstack list
/itemsstack list items
/itemsstack list tags
/itemsstack list <page>
You can also change how many rules are displayed per page for the current session:
/itemsstack list size
/itemsstack list size <count>
Save config
/itemsstack save
Saves the current in-memory configuration to disk.
Reload config
/itemsstack reload
Discards unsaved changes and reloads the configuration from disk.
Help
/itemsstack help
Saving Behavior
Changes made through commands or the Mod Menu config screen are applied immediately.
They are not automatically saved to disk.
Use:
/itemsstack save
to save them permanently.
Use:
/itemsstack reload
to discard unsaved changes and reload the saved config.
Compatibility
The mod is intended to be installed on both the client and server.
It can also be used server-side with vanilla clients for most normal inventory behavior.
Some client-side behavior, especially Creative inventory interactions and custom stack count rendering, requires the mod to also be installed on the client.
Notes
Items with different components, damage values, or other stack data are still kept separate according to normal Minecraft stacking rules.
Explicit per-stack MAX_STACK_SIZE component changes take priority over this mod's configuration.
下载 Items Stack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Items Stack
下载 Items Stack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Items Stack
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Items Stack
下载 Items Stack
下载 Items Stack
已更新至 Mojang 未混淆的代码和 Mixins
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧