ChestSort
ChestSort 是一款适用于 Minecraft 1.21.x 与 26.2 的 Fabric 模组,可帮助你追踪物品的存储位置(箱子 + 桶),并通过针对每个容器的规则快速将物品从背包整理至容器中。
TL;DR
ChestSort 是高级自动化分拣装置的轻量级替代品,让你无需触碰红石,即可在点击按钮时享受部分分拣带来的便利。
是否曾经面对一堆箱子和桶,却忘了某件物品放在哪里了?ChestSort 允许你搜索特定物品,并查看哪些容器中含有该物品,同时会在游戏世界和 UI 中进行高亮显示。
在 Minecraft 的早期阶段,你很可能总是拥有一个“箱子怪物”——即一大组用于倾倒物品的箱子。随后玩家开始构建自动分拣系统,但这些系统往往非常复杂且需要大量资源。ChestSort 提供了一种轻量级的替代方案,让你在无需建造红石装置的情况下,通过点击按钮即可获得部分分拣的好处。
你可以为每个容器设置过滤规则,以指定哪些物品应存放于此,然后只需点击一次,即可将匹配的物品从你的背包快速整理到打开的容器中。
我们还提供了可在 github 上获取的预置配置模板,适用于任何世界。
功能特性
-
持久化容器数据库
- 仅追踪箱子和桶。
- 存储每个容器的物品数量及最后更新时间戳。
- 数据库在重启后保持持久化。
-
快速物品查找
-
世界中的高亮显示(查找模式)
- 执行
/cs find 后,在世界中高亮显示匹配的容器(使用轮廓渲染)。
-
UI 内高亮显示
- 当你打开含有当前搜索物品的箱子/桶时,该容器会在 UI 中被高亮显示。
-
高亮显示模式
/cs highlights on|off|until_opened 控制高亮显示是否开启,以及是否在打开被高亮的容器后自动清除。
/cs highlights dismiss 清除当前的高亮显示。
-
打开时自动刷新
-
每容器过滤规则(白名单 + 黑名单)
- 每个箱子/桶都可以基于以下条件设置白名单 + 黑名单规则:
- 明确的物品 ID(例如
minecraft:cobblestone)
- 物品标签(例如
#minecraft:logs),支持针对特定标签的例外设置
- 应用的预置配置(可重用的已保存规则集)
- 如果某物品同时匹配白名单和黑名单,你可以通过每容器的优先级切换来决定哪一方优先。
-
一键整理
- 当容器存在任何规则时,会出现一个整理 (Sort) 按钮。
- 点击整理会将匹配的物品从你的背包移动到打开的容器中。
- 匹配黑名单的物品不会被移动(除非白名单在冲突中获胜)。
-
整理反馈 + 撤销
- 整理/自动整理/组织操作后,左侧会显示通知,告知哪些物品发生了移动或变化。
- 包含一个撤销 (Undo) 按钮,用于还原最近的一次操作。
-
自动整理模式
- 提供按玩家设置的自动整理模式(
never、selected、always),以及按容器的自动整理开关。
-
组织 (Organize)
- 组织 (Organize) 按钮会重新排列打开的容器,以紧凑堆叠物品并对同类物品进行分组。
-
预置编辑器 + 导入/导出
- 在专用 UI 中编辑预置配置。
- 预置配置支持白名单/黑名单选项卡(与容器相同)。
- 可将预置配置作为可分享的
cs2| 字符串进行导入/导出(包含黑名单数据)。
-
法杖(区域批量编辑)
- 绑定任意物品作为法杖,并选择区域:
- 选区会在世界中高亮显示,并显示区域方块数量和容器数量。
- 在选定区域内批量应用过滤器/自动整理。
命令
所有命令均位于 /cs 下。
容器过滤 UI
- 打开箱子或 barrels(木桶)。
- 在容器界面的右侧点击 Filter(过滤)。
- 使用左侧面板查看已应用的内容:
- Filter Items(过滤物品)
- Filter Tags(过滤标签,含例外情况)
- Filter Presets(过滤预设)
- 使用左侧的头部标签页在 Whitelist(白名单)和 Blacklist(黑名单)之间切换。
- 如果同时使用两个标签页,请设置冲突的 priority(优先级),即当某物品同时匹配两者时以哪一方为准。
- 使用右侧面板进行搜索:
- 输入文本以搜索物品
- 输入
#something 以搜索标签
- 输入
&name 以搜索预设
- 点击绿色的 + 添加规则,红色的 x 删除规则。
- 如果过滤规则非空,点击 Sort(排序)将匹配的物品从你的背包移动到容器中。
整理:
- 点击 Organize(整理)对当前打开的容器进行打包和分组。
撤销:
- 在 Sort/Autosort/Organize 之后,可以使用 Undo(撤销)按钮恢复原状。
自动排序:
- 过滤界面包含一个用于当前容器的 Autosort(自动排序)开关。
- Autosort 的行为取决于你的
/cs autosort 模式设置。
- 当触发自动排序时,只要你打开容器,它会自动将匹配的物品从你的背包移动到容器中。
注意:
- 过滤器是按容器位置 + 维度存储的。
- 该模组仅针对 chests(箱子)和 barrels(木桶)。
安装
- 为 Minecraft 1.21.11 安装 Fabric Loader。
- 安装 Fabric API。
- 将构建好的模组 jar 文件放入
mods/ 文件夹。
开发环境
- Minecraft: 1.21.11
- Yarn mappings: 1.21.11+build.4
- Fabric Loader: 0.18.4
- Fabric API: 0.141.3+1.21.11
- Java: 21
关于扫描的注意事项
/cs scan 仅扫描 已加载 的区块(不会强制加载区块),这意味着它不一定能看到世界中的所有容器。
- 该模组依赖玩家在放置容器或加载新区块后运行
/cs scan;在执行扫描之前,数据可能不准确。不过,当你打开容器时,该模组会自动检测新容器或容器内容的变化。
关于排序的注意事项
- 排序仅将物品从你的背包移动到当前打开的容器中;它不会在容器之间移动物品,也不会将物品从容器移回你的背包。
- 某些服务器可能认为这是不公平的优势或游戏修改,并且由于向容器发送物品会连续发送多个数据包,这可能会触发反作弊系统的警告。在多人服务器使用时请谨慎。
ChestSort
ChestSort is a Fabric mod for Minecraft 1.21.x & 26.2 that helps you track where items are stored (chests + barrels) and quickly sort items from your inventory into containers using per-container rules.
TL;DR
ChestSort is a lightweight alternative to advanced sorting contraptions that gives you some of the benefits of sorting without even needing to touch redstone, sorting at the click of a button.
Ever had a bunch of chests and barrels and forgot where you put that one item? ChestSort lets you search for an item and see which containers have it, with highlights in the world and UI.
In the early game of Minecraft, you will probably always have a "chest monster" - a big group of chests that you dump items into. Players then start building automatic sorting systems, but these can be complex and require a lot of resources. ChestSort is a lightweight alternative that gives you some of the benefits of sorting without needing to build redstone contraptions, at the click of a button.
You can set up filter rules on each container to specify what items belong there, and then quickly sort matching items from your inventory into the open container with one click.
You can also find pre-made presets for any world on our github.
Features
-
Persistent container database
- Tracks chests and barrels only.
- Stores per-container item counts and last-updated timestamps.
- Database is persistent across restarts.
-
Fast item lookup
- Search for an item and get a list of containers that contain it.
-
World highlights for find
- Highlights matching containers in the world after
/cs find (outline rendering).
-
In-GUI highlight
- When you open a chest/barrel that contains your currently searched item, the container is highlighted in the UI.
-
Highlight modes
/cs highlights on|off|until_opened controls whether highlights show, and whether they auto-clear after you open a highlighted container.
/cs highlights dismiss clears current highlights.
-
Auto refresh on open
- Whenever you open a chest/barrel, that container’s stored snapshot is automatically refreshed.
-
Per-container filter rules (whitelist + blacklist)
- Each chest/barrel can have whitelist + blacklist rules based on:
- explicit item ids (e.g.
minecraft:cobblestone)
- item tags (e.g.
#minecraft:logs) with per-tag exceptions
- applied presets (reusable saved rule sets)
- If an item matches both whitelist and blacklist, you can choose which side wins via a per-container priority toggle.
-
One-click Sort
- When a container has any rules, a Sort button appears.
- Clicking Sort moves matching items from your inventory into the open container.
- Items matching the blacklist are not moved (unless whitelist is set to win conflicts).
-
Sort feedback + Undo
- After Sort/Autosort/Organize, a left-side notification shows what moved/changed.
- Includes an Undo button to revert the most recent operation.
-
Autosort modes
- Per-player autosort mode (
never, selected, always) plus a per-container autosort toggle.
-
Organize
- An Organize button rearranges the open container to pack stacks and group items.
-
Preset editor + import/export
- Edit presets in a dedicated UI.
- Presets support Whitelist/Blacklist tabs (same as containers).
- Import/export presets as shareable
cs2| strings (includes blacklist data).
-
Wand (region bulk edit)
- Bind any item as a wand and select a region:
- Left-click sets pos1
- Right-click sets pos2
- The selection is highlighted in-world and shows the region block count and container count.
- Bulk-apply filters/autosort in the selected region.
Commands
All commands are under /cs.
Container Filter UI
- Open a chest or barrel.
- Click Filter on the right side of the container screen.
- Use the left panel to view what’s applied:
- Filter Items
- Filter Tags (with exceptions)
- Filter Presets
- Use the left header tabs to switch between Whitelist and Blacklist.
- If you use both tabs, set the conflict priority (which side wins when an item matches both).
- Use the right panel search:
- type text to search for items
- type
#something to search tags
- type
&name to search presets
- Click the green + to add rules, red x to remove.
- If the filter rules are non-empty, click Sort to move matching items from your inventory into the container.
Organize:
- Click Organize to pack and group the open container.
Undo:
- After Sort/Autosort/Organize, use the Undo button to revert.
Autosort:
- The filter UI includes an Autosort toggle for the current container.
- Autosort behavior depends on your
/cs autosort mode.
- When autosort triggers, it automatically moves matching items from your inventory into the container whenever you open it.
Notes:
- The filter is stored per container position + dimension.
- The mod only targets chests and barrels.
Installation
- Install Fabric Loader for Minecraft 1.21.11.
- Install Fabric API.
- Put the built mod jar into your
mods/ folder.
Development
- Minecraft: 1.21.11
- Yarn mappings: 1.21.11+build.4
- Fabric Loader: 0.18.4
- Fabric API: 0.141.3+1.21.11
- Java: 21
Notes to Scanning
/cs scan scans loaded chunks only (it does not force-load chunks), meaning it doesn't necessarily see all containers in the world.
- The mod relies on players to run
/cs scan after placing containers or loading new chunks; the data may be inaccurate until a scan is performed. The mod, however, automatically detects new containers or changes to container contents when you open them.
Notes to Sorting
- Sorting only moves items from your inventory into the open container; it does not move items between containers or from the container into your inventory.
- Some servers may consider this an unfair advantage or game modification, and this may flag the anti-cheat as putting items into a container sends multiple packets in quick succession. Use with caution on multiplayer servers.
评论 0
登录后参与评分
还没有评论,来抢沙发吧