SIXsCanBreak 是一个轻量级的实用插件,赋予服务器管理员精确控制哪些物品可以破坏哪些方块的能力——即使在生存模式下也能实现。
默认情况下,Minecraft 的 CanDestroy 标签仅在创造模式下生效。SIXsCanBreak 将这一机制引入生存模式:将镐子锁定为仅能挖掘石头、限制铲子只能挖掘单一类型的方块,或防止自定义物品破坏任何内容——所有操作均可通过游戏内的一条命令完成,无需使用数据包。
限制数据直接存储在物品的 PersistentDataContainer 中,因此它会随物品一起穿越背包、死亡掉落以及服务器重启。
✨ 功能特性
- ? 方块白名单 — 定义手中每个物品可以破坏的具体方块类型。
- ? 限制模式 — 通过一条命令防止物品破坏任何方块。
- ♻️ 清除模式 — 移除物品上的所有限制并立即恢复默认行为。
- ? 适用于生存模式 — 无需创造模式或数据包。对玩家完全透明。
- ?️ ItemsAdder 支持 — 通过命名空间 ID(
pack:item)管理自定义 IA 物品的破坏规则,数据存储在专用的 ia_data.yml 文件中。
- ? 绕过权限 — 允许受信任的玩家完全豁免所有限制。
- ? 完全可自定义的消息 — 所有面向玩家显示的字符串均位于
messages.yml 中,完整支持 & 代码、十六进制颜色(&#RRGGBB)以及 MiniMessage 格式(Paper/Purpur)。
- ? 热重载 — 使用
/canbreak reload 实时应用所有配置和消息更改,无需重启服务器。
- ? 更新检查器 — 当有新版本可用时,自动通知在线的管理员。
? 依赖要求
?️ 命令列表
| 命令 |
描述 |
/canbreak add <block> |
将方块添加到手中物品的白名单中 |
/canbreak remove <block> |
从白名单中移除方块 |
/canbreak list |
显示手中物品允许破坏的所有方块 |
/canbreak restrict |
禁止物品破坏任何方块 |
/canbreak clear |
移除物品上的所有限制 |
/canbreak additem <id> <block> |
为 ItemsAdder 物品 ID 添加方块规则 |
/canbreak removeitem <id> <block> |
从 ItemsAdder 物品 ID 中移除方块规则 |
/canbreak listitem <id> |
列出 ItemsAdder 物品 ID 的方块规则 |
/canbreak restrictitem <id> |
限制 ItemsAdder 物品无法破坏任何东西 |
/canbreak clearitem <id> |
清除 ItemsAdder 物品 ID 的所有规则 |
/canbreak reload |
重新加载所有配置文件 |
/canbreak info |
显示插件状态及已启用的集成项 |
别名:/cb
? 权限说明
| 权限节点 |
描述 |
默认值 |
sixscanbreak.use |
使用 /canbreak 命令 |
op |
sixscanbreak.add |
向物品的白名单中添加方块 |
op |
sixscanbreak.remove |
从物品的白名单中移除方块 |
op |
sixscanbreak.list |
查看物品的方块列表 |
op |
sixscanbreak.restrict |
限制物品无法破坏任何方块 |
op |
sixscanbreak.clear |
清除物品的所有限制 |
op |
sixscanbreak.bypass |
绕过所有 CanBreak 限制 |
op |
sixscanbreak.reload |
重新加载配置 |
op |
sixscanbreak.info |
查看插件信息 |
op |
sixscanbreak.group.admin |
授予以上所有权限 |
op |
权限组(包括预设的 moderator 组)可在 permissions.yml 中进行完全自定义配置。
⚙️ 配置说明
所有插件消息均在 messages.yml 中完全可自定义。每条命令响应、拒绝提示和状态行均可自由编辑——支持 & 颜色代码、十六进制颜色(&#RRGGBB),并在 Paper/Purpur 上支持 MiniMessage 语法。前缀、分隔符样式以及每处通知均可更改以匹配您服务器的风格。
? 错误报告与支持
遇到 Bug?有疑问?或者只是想了解接下来的更新计划?Discord 服务器是最佳去处——支持工单、更新日志、公告等全部集中在一个地方。
? 加入 Discord
由 SIXs 制作 —— 专为 1.21+ 构建
SIXsCanBreak is a lightweight utility plugin that gives server administrators precise
control over which blocks any item can break — even in Survival mode.
By default, Minecraft's CanDestroy tag only works in Adventure mode. SIXsCanBreak
brings the same mechanic to Survival: lock a pickaxe to only mine stone, restrict a
shovel to a single block type, or prevent a custom item from breaking anything at all
— all managed in-game with a single command, no datapacks required.
Restriction data is stored directly on the item via the PersistentDataContainer,
so it travels with the item through inventories, deaths, and server restarts.
✨ Features
- ? Block Allowlists — Define exactly which block types each item in hand can break.
- ? Restrict Mode — Prevent an item from breaking any block at all with a single command.
- ♻️ Clear Mode — Remove all restrictions from an item and restore normal behavior instantly.
- ? Works in Survival — No Adventure mode or datapacks needed. Fully transparent to the player.
- ?️ ItemsAdder Support — Manage break rules for custom IA items by namespace ID (
pack:item), stored in a dedicated ia_data.yml file.
- ? Bypass Permission — Exempt trusted players from all restrictions entirely.
- ? Fully Customizable Messages — Every player-facing string lives in
messages.yml, with full support for & codes, hex colors (&#RRGGBB), and MiniMessage (Paper/Purpur).
- ? Hot Reload — Apply all config and message changes live with
/canbreak reload, no restart needed.
- ? Update Checker — Automatically notifies online operators when a new version is available.
? Requirements
- Bukkit / Spigot / Paper / Purpur (API 1.21+)
- ItemsAdder (optional — required only for custom item rules)
- PlaceholderAPI (optional)
?️ Commands
| Command |
Description |
/canbreak add <block> |
Add a block to the item in hand's allowlist |
/canbreak remove <block> |
Remove a block from the allowlist |
/canbreak list |
Show all allowed blocks for the item in hand |
/canbreak restrict |
Prevent the item from breaking any block |
/canbreak clear |
Remove all restrictions from the item |
/canbreak additem <id> <block> |
Add a block rule for an ItemsAdder item ID |
/canbreak removeitem <id> <block> |
Remove a block rule for an ItemsAdder item ID |
/canbreak listitem <id> |
List block rules for an ItemsAdder item ID |
/canbreak restrictitem <id> |
Restrict an ItemsAdder item from breaking anything |
/canbreak clearitem <id> |
Clear all rules for an ItemsAdder item ID |
/canbreak reload |
Reload all configuration files |
/canbreak info |
Show plugin status and active integrations |
Alias: /cb
? Permissions
| Permission |
Description |
Default |
sixscanbreak.use |
Use the /canbreak command |
op |
sixscanbreak.add |
Add blocks to an item's allowlist |
op |
sixscanbreak.remove |
Remove blocks from an item's allowlist |
op |
sixscanbreak.list |
View an item's block list |
op |
sixscanbreak.restrict |
Restrict an item from breaking any block |
op |
sixscanbreak.clear |
Clear all restrictions from an item |
op |
sixscanbreak.bypass |
Bypass all CanBreak restrictions |
op |
sixscanbreak.reload |
Reload configuration |
op |
sixscanbreak.info |
View plugin info |
op |
sixscanbreak.group.admin |
Grants all of the above |
op |
Permission groups (including a moderator preset) are fully configurable in permissions.yml.
⚙️ Configuration
All plugin messages are fully customizable in messages.yml. Every command response,
deny message, and status line can be edited freely — supports & color codes, hex
colors (&#RRGGBB), and MiniMessage syntax on Paper/Purpur. The prefix, separator
style, and every notification can be changed to match your server's style.
? Bug Reports & Support
Got a bug? A question? Just want to know what's coming next? The Discord server is the place to be — support tickets, changelogs, announcements and more, all in one place.
? Join the Discord
Made by SIXs — built for 1.21+
评论 0
登录后参与评分
还没有评论,来抢沙发吧