ChainmailSieve
ChainmailSieve 是一个轻量级的 Paper 插件,为锁链头盔赋予了一种特殊的生存机制。
当佩戴锁链头盔的玩家头部被掉落的沙子、红沙或砾石击中时,该方块会立即破碎,而不会像平常那样放置。破碎的方块会以物品形式掉落,头盔会损失耐久度,并且会通过游戏内的粒子效果和方块破碎声音播放小型冲击特效。
无需客户端模组。
功能
- 在接触锁链头盔时破碎掉落的
SAND、RED_SAND 和 GRAVEL
- 将破碎的方块作为物品掉落,而不是放置在世界中
- 使用标准的 Minecraft 耐久度行为损坏头盔
- 播放
falling_dust 粒子和匹配的方块破碎声音
- 通过标准的 Bukkit 权限节点支持基于权限的控制
- 与 LuckPerms 等权限管理器兼容,无需直接依赖
工作原理
如果掉落的受支持方块与佩戴锁链头盔的玩家的头盔区域发生碰撞:
- 掉落的方块在被正常放置之前被移除
- 对应的方块物品被掉落
- 头盔损失耐久度
- 在撞击点播放视觉和声音效果
配置
插件会在首次启动时自动创建 config.yml 文件。
默认配置:
enabled: true
debug:
enabled: false
durability-cost: 1
supported-materials:
- SAND
- RED_SAND
- GRAVEL
permissions:
use: chainmailsieve.use
bypass: chainmailsieve.bypass
admin: chainmailsieve.admin
effects:
particles:
enabled: true
count: 18
offset: 0.18
extra: 0.0
sound:
enabled: true
volume: 1.0
pitch: 1.0
messages:
reloaded: "&aChainmailSieve config reloaded."
no-permission: "&cYou do not have permission to use this command."
usage: "&eUsage: /chainmailsieve reload"
配置选项
enabled: 启用或禁用整个机制
debug.enabled: 启用调试日志以便于故障排除
durability-cost: 每次撞击消耗的耐久度数量
supported-materials: 可以被头盔破碎的掉落方块类型列表
permissions.*: 插件使用的权限节点
effects.particles.*: 控制 falling_dust 撞击效果
effects.sound.*: 控制方块破碎声音效果
messages.*: 重载命令使用的消息
命令
/chainmailsieve reload
- 别名:
/cms reload
在不重启服务器的情况下重新加载插件配置。
权限
chainmailsieve.use
允许玩家使用该机制。默认值:true
chainmailsieve.bypass
防止机制影响玩家。默认值:false
chainmailsieve.admin
允许使用重载命令。默认值:op
LuckPerms
ChainmailSieve 使用标准的 Bukkit 权限节点,因此可以开箱即用地与 LuckPerms 配合工作。
示例:
/lp user Steve permission set chainmailsieve.use true
/lp user Steve permission set chainmailsieve.bypass false
兼容性
- Minecraft:
1.21.11
- 服务器软件:
Paper
- 可能与 Purpur 和 Pufferfish 等现代 Paper 分支兼容,但官方开发并测试针对的是 Paper
- 不适用于
Spigot、CraftBukkit 或 Folia
- Java:
21+
安装
- 下载插件 jar 文件
- 将其放入服务器的
plugins 文件夹中
- 启动或重启服务器
- 如有需要,编辑
plugins/ChainmailSieve/config.yml
- 更改配置后使用
/chainmailsieve reload
注意事项
- 只有当玩家实际佩戴锁链头盔时,该机制才会生效
- 拥有 bypass 权限的玩家会被机制忽略
- 如果您正在使用权限插件,请确保没有意外授予
chainmailsieve.bypass
ChainmailSieve
ChainmailSieve is a lightweight Paper plugin that gives chainmail helmets a special survival mechanic.
When a player wearing a chainmail helmet is hit on the head by a falling block of sand, red sand, or gravel, the block breaks instantly instead of placing normally. The block drops as an item, the helmet loses durability, and a small impact effect is played using in-game particles and block break sounds.
No client-side mod is required.
Features
- Breaks falling
SAND, RED_SAND, and GRAVEL on contact with a chainmail helmet
- Drops the broken block as an item instead of placing it in the world
- Damages the helmet using normal Minecraft durability behavior
- Plays
falling_dust particles and the matching block break sound
- Supports permission-based control through standard Bukkit permission nodes
- Works with permission managers such as LuckPerms without requiring a direct dependency
How It Works
If a falling supported block collides with the helmet area of a player wearing a chainmail helmet:
- The falling block is removed before it can place normally
- The corresponding block item is dropped
- The helmet loses durability
- Visual and sound effects are played at the impact point
Configuration
The plugin creates a config.yml file automatically on first startup.
Default config:
enabled: true
debug:
enabled: false
durability-cost: 1
supported-materials:
- SAND
- RED_SAND
- GRAVEL
permissions:
use: chainmailsieve.use
bypass: chainmailsieve.bypass
admin: chainmailsieve.admin
effects:
particles:
enabled: true
count: 18
offset: 0.18
extra: 0.0
sound:
enabled: true
volume: 1.0
pitch: 1.0
messages:
reloaded: "&aChainmailSieve config reloaded."
no-permission: "&cYou do not have permission to use this command."
usage: "&eUsage: /chainmailsieve reload"
Config Options
enabled: Enables or disables the entire mechanic
debug.enabled: Enables debug logging for troubleshooting
durability-cost: How much durability is consumed per impact
supported-materials: List of falling block types that can be broken by the helmet
permissions.*: Permission nodes used by the plugin
effects.particles.*: Controls the falling_dust impact effect
effects.sound.*: Controls the block break sound effect
messages.*: Messages used by the reload command
Commands
/chainmailsieve reload
- Alias:
/cms reload
Reloads the plugin configuration without restarting the server.
Permissions
chainmailsieve.use
Allows the mechanic for a player. Default: true
chainmailsieve.bypass
Prevents the mechanic from affecting a player. Default: false
chainmailsieve.admin
Allows use of the reload command. Default: op
LuckPerms
ChainmailSieve uses normal Bukkit permission nodes, so it works with LuckPerms out of the box.
Example:
/lp user Steve permission set chainmailsieve.use true
/lp user Steve permission set chainmailsieve.bypass false
Compatibility
- Minecraft:
1.21.11
- Server software:
Paper
- Likely compatible with modern Paper forks such as
Purpur and Pufferfish, but officially developed and tested for Paper
- Not designed for
Spigot, CraftBukkit, or Folia
- Java:
21+
Installation
- Download the plugin jar
- Put it into your server's
plugins folder
- Start or restart the server
- Edit
plugins/ChainmailSieve/config.yml if needed
- Use
/chainmailsieve reload after changing the config
Notes
- The mechanic only works when the player is actually wearing a chainmail helmet
- Players with the bypass permission are ignored by the mechanic
- If you are using a permission plugin, make sure
chainmailsieve.bypass is not granted by mistake
评论 0
登录后参与评分
还没有评论,来抢沙发吧