Sorter's Satchel
使用一个制作好的收纳包,将匹配的库存物品存入附近的箱子中。
功能介绍
Sorter's Satchel 是一个轻量级的 Paper 插件,它用玩家可控的存入工具取代了不可靠的基于生物的自动整理方式。
制作出收纳包后,右键点击以打开其库存菜单,然后按下存入附近物品。你的主库存中的物品会被转移到已加载且包含完全相同物品的附近已加载箱子中。
- 匹配完整的物品数据,而不仅仅是材质。
- 优先填满现有的部分堆叠,然后再使用空槽位。
- 优先选择拥有最多匹配占用槽位的箱子。
- 当第一个箱子装满时,会继续存入下一个匹配的箱子。
- 不匹配的物品和溢出物品会保留在你的库存中。
- 保留护甲、副手物品、收纳包,以及默认情况下保留整个快捷栏。
- 仅搜索已加载区块;使用收纳包永远不会加载远处的区块。
- 无需客户端模组或资源包。
要求
安装
- 从 Releases 或成功的 Actions 构建 下载最新的 jar 文件。
- 将 jar 文件放入服务器的
plugins 目录中。
- 重启服务器。
- 制作一个 Sorter's Satchel。
合成配方
| 皮革 |
末影珍珠 |
皮革 |
| 铜锭 |
聚宝盆 |
铜锭 |
| 皮革 |
漏斗 |
皮革 |
制作出的聚宝盆具有自定义名称、描述、发光效果和持久身份标识。重命名普通的聚宝盆不会使其变成收纳包。
使用方法
- 将 Sorter's Satchel 放在库存中的任意位置。
- 右键点击它。
- 点击绿色的存入附近物品按钮。
- 已有目标堆叠的物品会立即被存入。
目标箱子必须已经包含至少一个完全匹配的物品。名称、附魔、药水数据、耐久度和其他组件都会被尊重。
配置
配置文件位于 plugins/SortersSatchel/config.yml:
# 玩家到目标箱子的最大直线距离。
search-radius: 16.0
# 默认情况下保留整个快捷栏。
include-hotbar: false
messages:
deposited: "<green>已将 <amount> 个物品存入 <chests> 个附近箱子中。"
nothing: "<yellow>附近箱子中没有库存物品的匹配堆叠。"
received: "<green>你获得了一个 Sorter's Satchel。"
搜索半径限制为 1–64 格。如果希望玩家也能存入快捷栏物品,请设置 include-hotbar: true。
命令与权限
| 命令 |
用途 |
权限 |
/sortersatchel open |
当玩家拥有收纳包时打开菜单 |
sortersatchel.use |
/sortersatchel give |
给予执行命令的操作者一个收纳包 |
sortersatchel.admin |
sortersatchel.use 默认授予。sortersatchel.admin 默认为服务器操作者。
构建
gradle clean build
编译后的 jar 文件将写入 build/libs/。
许可证
Sorter's Satchel 在 MIT License 下提供。
Sorter's Satchel
Deposit matching inventory items into nearby chests with one crafted satchel.
What it does
Sorter's Satchel is a lightweight Paper plugin that replaces unreliable mob-based sorting with a player-controlled deposit tool.
Craft the satchel, right-click it to open its inventory menu, and press Deposit nearby items. Items from your main inventory are transferred into nearby loaded chests that already contain an exactly matching item.
- Matches complete item data, not only the material.
- Fills existing partial stacks before using empty slots.
- Prefers chests with the most matching occupied slots.
- Continues into another matching chest when the first becomes full.
- Leaves unmatched items and overflow in your inventory.
- Preserves armor, offhand items, the satchel, and—by default—the complete hotbar.
- Searches loaded chunks only; using the satchel never loads distant chunks.
- Requires no client mod or resource pack.
Requirements
Installation
- Download the latest jar from Releases or a successful Actions build.
- Place the jar in the server's
plugins directory.
- Restart the server.
- Craft a Sorter's Satchel.
Crafting recipe
| Leather |
Ender Pearl |
Leather |
| Copper Ingot |
Bundle |
Copper Ingot |
| Leather |
Hopper |
Leather |
The crafted bundle has a custom name, lore, glow, and persistent identity. Renaming an ordinary bundle does not turn it into a satchel.
Usage
- Keep the Sorter's Satchel anywhere in your inventory.
- Right-click it.
- Click the green Deposit nearby items button.
- Items with an existing destination stack are deposited immediately.
A destination chest must already contain at least one exactly matching item. Named items, enchantments, potion data, durability, and other components are respected.
Configuration
The configuration is created at plugins/SortersSatchel/config.yml:
# Maximum straight-line distance from the player to a destination chest.
search-radius: 16.0
# Preserve the complete hotbar by default.
include-hotbar: false
messages:
deposited: "<green>Deposited <amount> items into <chests> nearby chests."
nothing: "<yellow>No inventory items had matching stacks in nearby chests."
received: "<green>You received a Sorter's Satchel."
The search radius is limited to 1–64 blocks. Set include-hotbar: true if players should also deposit hotbar items.
Commands and permissions
| Command |
Purpose |
Permission |
/sortersatchel open |
Opens the menu when the player owns a satchel |
sortersatchel.use |
/sortersatchel give |
Gives the executing operator a satchel |
sortersatchel.admin |
sortersatchel.use is granted by default. sortersatchel.admin defaults to server operators.
Building
gradle clean build
The compiled jar is written to build/libs/.
License
Sorter's Satchel is available under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧