ContainerLimit
限制或禁止特定物品进入末影箱、箱子、潜影盒、包裹以及所有其他容器。
阻止玩家在末影箱中囤积鞘翅,在包裹里存放不死图腾,或将受禁物品存放在你不希望它们出现的地方。每种容器类型都有独立的限制,并且该插件会拦截绕过这些限制的常用手段。
✨ 功能特性
- ? 每种容器类型独立的限制: 末影箱、箱子、桶、潜影盒、漏斗、熔炉等
- ? 包裹限制: 控制可以放入内部的物品
- ? 限制或禁止: 为每个容器设置最大数量,或者设置为
0 以完全禁用某物品
- ✋ 部分放置: 如果放入的物品过多,符合数量的部分会被放入,其余的仍留在玩家手中
- ? 物品组: 一个条目即可涵盖所有羊毛颜色、所有潜影盒、所有床……
- ? 来自其他插件的自定义物品: 通过其隐藏的插件标签识别,因此重命名无法绕过限制
- ?
/climit hand: 显示手持自定义物品的标签,格式为可直接粘贴的配置行
- ? 带检查的重载: 配置文件中的错误会在聊天栏中显示,而不是静默失败
?️ 难以绕过
该插件覆盖了物品进入容器的所有方式:
- 普通点击、Shift+点击、拖拽、数字键和副手键
- 隐藏在潜影盒和包裹内的受禁物品,即使是嵌套的包裹(包裹里的包裹)
- 漏斗和发射器推送物品进入,以及漏斗从地面拾取物品
- 手动或通过发射器放置预先填充好的潜影盒
- 合并两个箱子形成双层箱,从而超出限制
- 通过命令(
/ec、/invsee……)打开末影箱
⚙️ 配置
containers:
ENDER_CHEST:
ELYTRA: 1 # 每个末影箱最多 1 个
TOTEM_OF_UNDYING: 0 # 禁止
CHEST:
WOOL: 64 # 总共 64 个羊毛,任意颜色
SHULKER_BOX:
'*SHULKER_BOX': 0 # 通配符
BUNDLE:
ENDER_PEARL: 8 # 每个包裹最多 8 颗末影珍珠
'custom:someplugin:item_id=example': 0 # 自定义物品
完整设置指南:请参阅 GitHub 页面。
? 命令与权限
| 命令 |
描述 |
/climit reload |
重载配置文件 |
/climit list |
显示所有限制 |
/climit hand |
显示手持物品上的自定义物品标签 |
| 权限 |
描述 |
containerlimit.admin |
使用命令(默认:OP) |
containerlimit.bypass |
忽略所有限制 |
containerlimit.bypass.<type> |
忽略特定容器类型的限制,例如 containerlimit.bypass.chest |
✅ 兼容性
Minecraft 1.18 – 1.21.x · Spigot, Paper, Purpur · Java 17+ · 仅限服务端
ContainerLimit
Limit or ban specific items in ender chests, chests, shulker boxes, bundles and every other container.
Stop players from hoarding elytras in their ender chest, stashing totems in bundles, or storing banned items anywhere you don't want them. Every container type gets its own limits, and the plugin blocks the usual ways around them.
✨ Features
- ? Separate limits for each container type: ender chests, chests, barrels, shulker boxes, hoppers, furnaces and more
- ? Bundle limits: control what can go inside bundles
- ? Limit or ban: set a maximum per container, or
0 to block an item completely
- ✋ Partial placing: if too many items are put in, as many as fit go in and the rest stays with the player
- ? Item groups: one entry covers every wool color, every shulker box, every bed…
- ? Custom items from other plugins: recognised by their hidden plugin tag, so renaming them doesn't get around the limit
- ?
/climit hand: shows the tags on a held custom item as ready-to-paste config lines
- ? Reload with checks: mistakes in the config are shown in chat instead of failing silently
?️ Hard to get around
The plugin covers every way items can get into a container:
- Normal clicks, shift-clicks, dragging, number keys and the offhand key
- Banned items hidden inside shulker boxes and bundles, even bundles inside bundles
- Hoppers and droppers pushing items in, and hoppers picking items up off the ground
- Placing pre-filled shulker boxes, by hand or by a dispenser
- Merging two chests into a double chest that would go over the limit
- Ender chests opened with commands (
/ec, /invsee, …)
⚙️ Configuration
containers:
ENDER_CHEST:
ELYTRA: 1 # max 1 per ender chest
TOTEM_OF_UNDYING: 0 # banned
CHEST:
WOOL: 64 # 64 wool in total, any colors
SHULKER_BOX:
'*SHULKER_BOX': 0 # wildcard
BUNDLE:
ENDER_PEARL: 8 # max 8 pearls per bundle
'custom:someplugin:item_id=example': 0 # custom item
Full setup guide: see the GitHub page.
? Commands & Permissions
| Command |
Description |
/climit reload |
Reload the config |
/climit list |
Show all limits |
/climit hand |
Show custom item tags on your held item |
| Permission |
Description |
containerlimit.admin |
Use the commands (default: op) |
containerlimit.bypass |
Ignore all limits |
containerlimit.bypass.<type> |
Ignore limits for one container type, e.g. containerlimit.bypass.chest |
✅ Compatibility
Minecraft 1.18 – 1.21.x · Spigot, Paper, Purpur · Java 17+ · Server-side only
评论 0
登录后参与评分
还没有评论,来抢沙发吧