SmartShulkers 将潜影盒变为具有过滤功能的存储容器。为潜影盒设置过滤器后,当你走过匹配的方块时,它会自动拾取、删除或出售这些物品。这是一个适用于 Paper 和 Purpur(1.21 至 26.3)的服务端插件,玩家可以使用原版客户端加入服务器。
三种潜影盒
在合成表中放入任意颜色的潜影盒以及一个额外物品即可制作。潜影盒内原有的物品会保留在里面。
| 潜影盒类型 |
添加物品 |
功能说明 |
| Smart Shulker(智能潜影盒) |
Book(书) |
自动拾取匹配的物品并存入自身 |
| Garbage Shulker(垃圾潜影盒) |
Lava Bucket(岩浆桶) |
删除你走过的匹配物品 |
| Sell Shulker(售卖潜影盒) |
Emerald(绿宝石) |
将匹配的物品出售换取金钱(需要安装 Vault 和经济类插件) |
染色机制与原版一致,染色后的潜影盒会保留其类型、过滤器和内容物。被活塞、发射器或水流破坏的潜影盒同样会保留这些属性。若想将其恢复为普通潜影盒,只需单独将其放入合成表中即可,内容物依然保留。
设置过滤器
手持物品并在你的背包界面中点击潜影盒。
- 左键点击可将该物品添加到白名单,如果已在其中则移除。
- 右键点击则对黑名单执行相同操作。
一个潜影盒只能拥有白名单或黑名单之一,不能同时存在。一旦某个列表包含物品,另一个列表将被锁定,直到你清空该列表为止。使用白名单时,潜影盒仅拾取列表中列出的物品;使用黑名单时,它会拾取除列表中物品外的所有物品。物品的描述信息(lore)会显示当前正在使用的列表类型。
若要一次性清除过滤器,请在任一手中持有潜影盒并运行命令 /ss clear。
你也可以跳过背包界面。在主手持有物品,副手持有潜影盒,然后蹲下并点击空气:左键点击用于白名单,右键点击用于黑名单。排序类模组不会意外触发此操作。这两种方法都可以在配置文件中关闭(settings.general.filter-methods),如果某个排序模组不断更改过滤器,这将非常有用。
售卖
Sell Shulker(售卖潜影盒)按照 prices.yml 中的设定支付金额,按单个物品或一组计算:
STONE: 0.5 # 1 个石头 = 0.5
DIAMONDx3: 300 # 3 个钻石 = 300,即每个 100
配置文件中的 sell_when 决定何时进行售卖:INSTA(拾取时立即)、STACK(堆叠满时)、LAST_SLOT(最后一个槽位填满时)或 FULL(全部装满时)。运行 /smartshulkers sellall 可出售你携带的所有 Sell Shulker 中可以出售的物品。
配置与权限
config.yml 包含名称、描述信息、消息、音效、权限节点以及每种潜影盒类型的开关。
blacklist.yml 列出了不能添加到白名单的材料。
prices.yml 定义了 Sell Shulker 的售价。
- 具有自定义名称、描述信息或自定义模型数据的物品可以被跳过。名称可以是纯文本,也可以是
/regex/i 格式的正则表达式。
| 命令 |
所需权限 |
/smartshulkers reload |
smartshulkers.reload |
/smartshulkers sellall |
smartshulkers.sell.command |
/smartshulkers clear |
对应潜影盒的修改权限 |
合成和过滤器相关的权限(smartshulkers.craft.* 和 smartshulkers.modify.*)可以在 config.yml 中进行修改。
发现 Bug?请提交 issue 或在 Discord 中提问。
SmartShulkers turns shulker boxes into filtered storage. Give a shulker a filter and it picks up, deletes or sells the matching items you walk over. It's a server-side plugin for Paper and Purpur (1.21 to 26.3), so players can join with a vanilla client.
The three shulkers
Put a shulker box of any color and one extra item in a crafting grid. Whatever was inside the box stays inside.
| Shulker |
Add |
What it does |
| Smart Shulker |
Book |
Picks up matching items into itself |
| Garbage Shulker |
Lava Bucket |
Deletes matching items you walk over |
| Sell Shulker |
Emerald |
Sells matching items for money (needs Vault and an economy plugin) |
Dyeing works like normal, and a dyed shulker keeps its type, filter and contents. So does one that a piston, dispenser or water breaks. To turn one back into a plain shulker box, put it alone in a crafting grid. The contents stay.
Setting a filter
Pick up an item and click the shulker in your inventory with it.
- Left click adds the item to the whitelist, or removes it if it's already there.
- Right click does the same for the blacklist.
A shulker has either a whitelist or a blacklist, never both. Once one list has an item, the other is locked until you empty it. With a whitelist the shulker only takes the listed items, with a blacklist it takes everything except the listed items. The lore shows whichever list is in use.
To wipe the filter in one go, hold the shulker in either hand and run /ss clear.
You can also skip the inventory screen. Hold the shulker in your off hand and the item in your main hand, then sneak and click the air: left click for the whitelist, right click for the blacklist. Sorting mods can't trigger that by accident. Both methods can be turned off in the config (settings.general.filter-methods), which is handy if a sorting mod keeps changing filters.
Selling
Sell Shulkers pay what prices.yml says, per item or per stack:
STONE: 0.5 # 1 stone = 0.5
DIAMONDx3: 300 # 3 diamonds = 300, so 100 each
sell_when in the config decides when the sale happens: INSTA (on pickup), STACK, LAST_SLOT or FULL. /smartshulkers sellall sells everything sellable in every Sell Shulker you're carrying.
Config and permissions
config.yml has names, lore, messages, sounds, permission nodes and a switch for each shulker type.
blacklist.yml lists materials that can't go on a whitelist.
prices.yml is what the Sell Shulker pays.
- Items with a custom name, lore or custom model data can be skipped. Names can be plain text or
/regex/i.
| Command |
Permission |
/smartshulkers reload |
smartshulkers.reload |
/smartshulkers sellall |
smartshulkers.sell.command |
/smartshulkers clear |
the shulker's modify permission |
The crafting and filter permissions (smartshulkers.craft.* and smartshulkers.modify.*) can be changed in config.yml.
Found a bug? Open an issue or ask in the Discord.
评论 0
登录后参与评分
还没有评论,来抢沙发吧