
Bnnch: Sort
一款适用于 Minecraft 1.21.1 的 NeoForge 模组,提供智能物品栏整理功能,支持多种整理方式、可自定义偏好设置以及直观的用户界面。
功能特性
- 四种整理方式:按名称字母顺序、按类别、按数量或按模组 ID 整理物品
- 升序/降序排列:通过一次按键即可反转任意整理方式的排序方向
- 槽位锁定:锁定特定的物品栏槽位以将其排除在整理之外(v0.2.0+)
- 智能堆叠合并:在整理前自动合并未满的物品堆
- 视觉反馈:屏幕覆盖层显示当前的整理偏好设置
- 快捷键:用于整理和循环切换偏好设置的快速键盘快捷方式
- 指令支持:完整的支持整理和配置的命令功能
- UI 按钮:容器屏幕上可选的整理按钮
- 玩家独立偏好设置:设置跨会话和重生后保持持久化
整理方式
| 方式 |
描述 |
| Alphabetical |
按显示名称进行排序(A-Z 或 Z-A) |
| Category |
按创造模式标签分组,然后在每个组内按字母顺序排序 |
| Quantity |
按物品堆数量排序(从高到低,或反转) |
| Mod ID |
按模组命名空间分组,然后在每个模组内按字母顺序排序 |
安装指南
- 为 Minecraft 1.21.1 安装 NeoForge
- 下载最新版本的 Bnnch: Sort
- 将
.jar 文件放入你的 mods 文件夹中
- 启动 Minecraft
使用方法
快捷键
| 按键 |
操作 |
R |
整理鼠标光标下方的物品栏区域 |
P |
循环切换到下一个整理偏好设置(方式 + 顺序) |
Alt + 点击 |
切换玩家物品栏槽位的锁定状态 |
整理按键会根据鼠标位置自动检测要整理的物品栏部分:
- 悬停在容器(箱子、潜影盒)上时,整理该容器
- 悬停在主物品栏上时,整理 27 格的网格
- 悬停在快捷栏上时,仅整理快捷栏
槽位锁定
按住修饰键(默认为 Alt)并点击玩家物品栏槽位以锁定或解锁它。被锁定的槽位会显示彩色高亮,并在整理操作中排除。
- 锁定槽位的内容在整理发生时保持不变
- 锁定的空槽位在整理过程中保持为空
- 锁定槽位中的非满堆物品在整理期间仍可从解锁槽位接收匹配的合并物品
- 锁定状态在死亡、重连和维度变化之间持久保存
- 只有玩家物品栏槽位(主网格和快捷栏)可以被锁定——容器槽位无法锁定
悬停在空的锁定槽位上会显示解锁说明的工具提示。修饰键、高亮颜色和工具提示可见性均可在客户端配置中进行调整。
指令
所有指令均使用 /bnnchsort 前缀:
/bnnchsort sortinv [region] - 整理你的物品栏
区域:all, main, hotbar (默认:main)
/bnnchsort change <method> <order> - 设置你的整理偏好设置
方式:alphabetical, category, quantity, mod_id
顺序:ascending, descending
/bnnchsort reset - 将偏好设置重置为服务器默认值
/bnnchsort unlock - 解锁所有已锁定的物品栏槽位
/bnnchsort config [key] - 查看配置设置
键:method, order, button
/bnnchsort help - 显示帮助信息和当前偏好设置
同时显示锁定槽位数量
UI 按钮
一个小巧的整理按钮出现在兼容的容器屏幕上(箱子、潜影盒、玩家物品栏)。点击它以整理容器的内容。按钮工具提示显示你当前的整理方式和顺序。
可以在客户端配置中禁用该按钮。
配置
客户端配置
位于 config/bnnch_sort-client.toml
| 选项 |
默认值 |
描述 |
showSortButton |
true |
在容器屏幕上显示整理按钮 |
lockModifierKey |
ALT |
用于锁定槽位的修饰键 (ALT, CONTROL, SHIFT) |
lockTintColor |
FFD70080 |
锁定槽位叠加层的 RGBA 十六进制颜色 |
showLockTooltip |
true |
在锁定槽位上显示解锁提示工具提示 |
锁定高亮颜色
lockTintColor 值使用 RGBA 十六进制格式。你可以使用如 rgbcolorpicker.com 的颜色选择器来选择颜色,并附加透明度值(00-FF)。
以下是一些示例(50% 不透明度):FF000080(红色)、FFD70080(金色)、00FF0080(绿色)、0000FF80(蓝色)。
服务器配置
位于 config/bnnch_sort-server.toml
| 选项 |
默认值 |
描述 |
defaultSortMethod |
ALPHABETICAL |
新玩家的默认整理方式 |
defaultSortOrder |
ASCENDING |
新玩家的默认排序顺序 |
兼容性
- Minecraft: 1.21.1
- NeoForge: 21.1.x 或更高版本
- Java: 21 或更高版本
支持的容器
该模组整理以下位置的物品:
- 玩家物品栏(主网格和快捷栏)
- 箱子和双层箱子
- 潜影盒
- 末影箱
- 桶
以下槽位类型永远不会排序:
- 盔甲槽
- 副手槽
- 合成台网格槽
- 熔炉输入/输出/燃料槽
- 其他特殊结果槽
- 玩家锁定的槽位(参见 槽位锁定)
免责声明: 旗帜和徽标是使用人工智能生成的。这些可能会出现在画廊图片中。

Bnnch: Sort
A NeoForge mod for Minecraft 1.21.1 that provides intelligent inventory sorting with multiple sorting methods,
customizable preferences, and an intuitive user interface.
Features
- Four Sorting Methods: Sort items alphabetically, by category, by quantity, or by mod ID
- Ascending/Descending Order: Reverse any sorting method with a single keypress
- Slot Locking: Lock specific inventory slots to exclude them from sorting (v0.2.0+)
- Smart Stack Merging: Automatically combines partial stacks before sorting
- Visual Feedback: On-screen overlay shows current sort preferences
- Keybindings: Quick keyboard shortcuts for sorting and cycling preferences
- Slash Commands: Full command support for sorting and configuration
- UI Button: Optional sort button on container screens
- Per-Player Preferences: Settings persist across sessions and respawn
Sorting Methods
| Method |
Description |
| Alphabetical |
Sorts items by display name (A-Z or Z-A) |
| Category |
Groups items by creative tab, then alphabetically within each group |
| Quantity |
Sorts by stack count (highest to lowest, or reversed) |
| Mod ID |
Groups items by mod namespace, then alphabetically within each mod |
Installation
- Install NeoForge for Minecraft 1.21.1
- Download the latest release of Bnnch: Sort
- Place the
.jar file in your mods folder
- Launch Minecraft
Usage
Keybindings
| Key |
Action |
R |
Sort the inventory region under your cursor |
P |
Cycle to the next sort preference (method + order) |
Alt + Click |
Toggle slot lock on a player inventory slot |
The sort key automatically detects which inventory section to sort based on mouse position:
- Hovering over a container (chest, shulker box) sorts that container
- Hovering over your main inventory sorts the 27-slot grid
- Hovering over your hotbar sorts just the hotbar
Slot Locking
Hold the modifier key (default: Alt) and click a player inventory slot to lock or unlock it. Locked slots are
highlighted with a colored tint and are excluded from sorting operations.
- Locked slots keep their contents in place when sorting occurs
- Locked empty slots remain empty during sorts
- Non-full stacks in locked slots can still receive matching items merged from unlocked slots during sorting
- Lock state persists across death, relog, and dimension changes
- Only player inventory slots (main grid and hotbar) can be locked — container slots cannot
Hovering over an empty locked slot shows a tooltip with unlock instructions. The modifier key, tint color, and tooltip
visibility are all configurable in the client config.
Commands
All commands use the /bnnchsort prefix:
/bnnchsort sortinv [region] - Sort your inventory
Regions: all, main, hotbar (default: main)
/bnnchsort change <method> <order> - Set your sorting preference
Methods: alphabetical, category, quantity, mod_id
Orders: ascending, descending
/bnnchsort reset - Reset preferences to server defaults
/bnnchsort unlock - Unlock all locked inventory slots
/bnnchsort config [key] - View configuration settings
Keys: method, order, button
/bnnchsort help - Display help and current preferences
Also shows locked slot counts
UI Button
A small sort button appears on compatible container screens (chests, shulker boxes, player inventory). Click it to sort
the container contents. The button tooltip shows your current sort method and order.
The button can be disabled in the client configuration.
Configuration
Client Configuration
Located at config/bnnch_sort-client.toml
| Option |
Default |
Description |
showSortButton |
true |
Display the sort button on container screens |
lockModifierKey |
ALT |
Modifier key for locking slots (ALT, CONTROL, SHIFT) |
lockTintColor |
FFD70080 |
RGBA hex color for the locked slot overlay tint |
showLockTooltip |
true |
Show unlock hint tooltip on locked slots |
Lock Tint Color
The lockTintColor value uses RGBA hex format. You can use a color picker like
rgbcolorpicker.com to choose a color and append the alpha value (00-FF) for transparency.
Here are some examples (at 50% opacity): FF000080 (red), FFD70080 (gold), 00FF0080 (green), 0000FF80 (blue).
Server Configuration
Located at config/bnnch_sort-server.toml
| Option |
Default |
Description |
defaultSortMethod |
ALPHABETICAL |
Default sorting method for new players |
defaultSortOrder |
ASCENDING |
Default sort order for new players |
Compatibility
- Minecraft: 1.21.1
- NeoForge: 21.1.x or higher
- Java: 21 or higher
Supported Containers
The mod sorts items in:
- Player inventory (main grid and hotbar)
- Chests and double chests
- Shulker boxes
- Ender chests
- Barrels
Protected Slots
The following slot types are never sorted:
- Armor slots
- Offhand slot
- Crafting grid slots
- Furnace input/output/fuel slots
- Other special result slots
- Player-locked slots (see Slot Locking)
Disclaimer: Banner and logo were generated with the use of AI. These may appear in the gallery images.
评论 0
登录后参与评分
还没有评论,来抢沙发吧