饰品
Minecraft 服务器的轻量级饰品系统
Accessories 是一款适用于 Minecraft 服务器的轻量级饰品槽位系统。
它添加了一个独立的饰品 GUI(图形用户界面),允许玩家装备自定义饰品,且不会干扰原版护甲或常规装备逻辑。
饰品可用于提供:
- 额外属性或类似特质(trait)的效果
- 对原版 Minecraft 属性的支持
- 自定义盾牌机制
- 基于 Lore(描述文本)的标签
- 外部技能集成,例如 MythicMobs
- 与 AuraSkills 等插件的兼容钩子
这使其更适合作为一个模块化的饰品框架,而非绑定于单一插件的系统。

MythicMobs 支持
饰品支持通过已装备的饰品触发 MythicMobs 技能。
你可以将 MythicMobs 技能绑定到饰品物品上,并使其在不同条件下触发,例如:
onAttack — 当玩家造成伤害时
onDamaged — 当玩家受到伤害时
onInteract — 当玩家进行交互时
onKill — 当玩家击杀实体时
onShoot — 当玩家发射投射物时
onTimer — 根据配置的时间间隔重复触发
每个技能条目还可以定义:
- 目标类型(
self 或 targeted)
- 重复效果的计时器周期
- 可选的条件字段,用于未来扩展
这使得饰品可以充当自定义技能的载体,便于集成到高级战斗或 RPG 系统中。
示例
signature: 1
items:
example_ring:
name: "&bExample Ring"
skills:
- skill: ExampleAttackSkill
trigger: onAttack
target: targeted
- skill: ExampleTimerSkill
trigger: onTimer
period: 20
target: self
conditions: {}
原版属性支持
饰品还可以通过已装备的物品应用 Minecraft 原版属性。
这使得围绕原生属性系统构建饰品成为可能,例如:
- 最大生命值
- 护甲值
- 护甲韧性
- 攻击伤害
- 攻击速度
- 移动速度
- 击退抗性
- 幸运值
如果你希望饰品系统保持贴近原版机制,同时仍能利用独立的饰品 GUI,这将非常有用。
吸收系统(盾牌机制)
饰品引入了自定义的 Absorb(物理吸收) 和 MagicAbsorb(魔法吸收) 盾牌机制。
Absorb 的工作原理
以下规则同时适用于 Absorb 和 MagicAbsorb:
- 所有传入的伤害,除 跌落伤害 外,首先由盾牌吸收。
- 当盾牌耗尽时,伤害按正常方式施加到玩家的生命值上。
- 如果玩家在 12 秒内未受到伤害,盾牌开始再生。
- 再生速率:每秒恢复最大吸收值的 10%。
- 所有数值均可在配置文件中自定义。
PlaceholderAPI 支持
你可以使用 PlaceholderAPI 显示盾牌状态:
%absorb_current_shield%
%absorb_max_shield%
%magicabsorb_current_shield%
%magicabsorb_max_shield%
适用于:
- 动作栏(action bars)
- 计分板(scoreboards)
- HUD 显示
饰品 GUI
该插件包含一个完全可定制的 GUI 系统:
- 自定义 GUI 标题
- 可调整的 GUI 大小
- 锁定的帧槽位
- 使用 Lore 关键词进行基于槽位的物品限制
- 只有符合槽位规则的物品才能被装备
这让你能够精确控制玩家可以使用哪些类型的饰品。
依赖项
| 插件 |
需求 |
| PlaceholderAPI |
可选 |
| AuraSkills |
可选,用于特质风格集成 |
| MythicMobs |
可选,用于饰品触发的技能 |
命令
| 命令 |
描述 |
权限 |
/inv |
打开饰品 GUI |
accessory.inv |
/accessory reload |
重载配置、GUI、帧和槽位设置 |
accessory.reload |
可用效果
饰品可用于实现诸如以下的效果:
-
Defence(防御)
减少传入的魔法伤害
-
HealRegeneration(治疗再生)
增加生命再生速度
-
HealRegenerationDecrease(治疗再生降低)
降低再生速度,常用于诅咒物品
-
Absorb(吸收)
赋予并再生物理伤害护盾
-
MagicAbsorb(魔法吸收)
赋予并再生魔法伤害护盾
-
Vanilla Attributes(原版属性)
支持原生的 Minecraft 属性,如生命值、护甲、伤害和移动速度
Lore 标签系统
饰品支持基于 Lore 的标签系统。
工作原理
如果饰品物品的 Lore 中包含以下格式的内容:
[xxxx]
玩家将自动获得相应的标签:
xxxx
用例
- 条件性技能或效果
- 与其他插件或数据包的集成
- 由玩家标签触发的自定义机制
- 基于饰品的进阶逻辑
该系统允许饰品与外部系统进行交互,而无需硬性依赖。
Accessories
Lightweight Accessory System for Minecraft Servers
Accessories is a lightweight accessory slot system for Minecraft servers.
It adds a separate Accessories GUI, allowing players to equip custom accessories without interfering with vanilla armor or normal equipment logic.
Accessories can be used to provide:
- extra attributes or trait-style effects
- support for vanilla Minecraft attributes
- custom shield mechanics
- lore-based tags
- external skill integrations such as MythicMobs
- compatibility hooks for plugins like AuraSkills
This makes it suitable as a modular accessory framework rather than a system tied to a single plugin.

MythicMobs Support
Accessories supports triggering MythicMobs skills through equipped accessories.
You can bind MythicMobs skills to accessory items and have them trigger under different conditions, such as:
onAttack — when the player deals damage
onDamaged — when the player takes damage
onInteract — when the player interacts
onKill — when the player kills an entity
onShoot — when the player fires a projectile
onTimer — repeated trigger based on a configured interval
Each skill entry can also define:
- the target type (
self or targeted)
- timer period for repeated effects
- optional condition fields for future expansion
This allows accessories to work as custom skill carriers, making them easy to integrate into advanced combat or RPG systems.
Example
signature: 1
items:
example_ring:
name: "&bExample Ring"
skills:
- skill: ExampleAttackSkill
trigger: onAttack
target: targeted
- skill: ExampleTimerSkill
trigger: onTimer
period: 20
target: self
conditions: {}
Vanilla Attribute Support
Accessories can also apply vanilla Minecraft attributes through equipped items.
This makes it possible to build accessories around native attribute systems, such as:
- max health
- armor
- armor toughness
- attack damage
- attack speed
- movement speed
- knockback resistance
- luck
This is useful if you want your accessory system to stay close to vanilla mechanics while still benefiting from a separate accessory GUI.
Absorb System (Shield Mechanic)
Accessories introduces custom Absorb and MagicAbsorb shield mechanics.
How Absorb Works
This applies to both Absorb and MagicAbsorb:
- All incoming damage, except fall damage, is absorbed by the shield first.
- When the shield is depleted, damage is applied to the player's health as normal.
- If the player takes no damage for 12 seconds, the shield starts regenerating.
- Regeneration rate: 10% of max absorb per second.
- All values can be customized in the config file.
PlaceholderAPI Support
You can display shield status using PlaceholderAPI:
%absorb_current_shield%
%absorb_max_shield%
%magicabsorb_current_shield%
%magicabsorb_max_shield%
Useful for:
- action bars
- scoreboards
- HUD displays
Accessories GUI
The plugin includes a fully customizable GUI system:
- custom GUI title
- adjustable GUI size
- locked frame slots
- slot-based item restrictions using lore keywords
- only items that match slot rules can be equipped
This gives you precise control over what types of accessories players can use.
Dependencies
| Plugin |
Requirement |
| PlaceholderAPI |
Optional |
| AuraSkills |
Optional, for trait-style integrations |
| MythicMobs |
Optional, for accessory-triggered skills |
Commands
| Command |
Description |
Permission |
/inv |
Open the Accessories GUI |
accessory.inv |
/accessory reload |
Reload config, GUI, frame, and slot settings |
accessory.reload |
Available Effects
Accessories can be used for effects such as:
-
Defence
Reduces incoming magic damage
-
HealRegeneration
Increases health regeneration
-
HealRegenerationDecrease
Reduces regeneration, useful for cursed items
-
Absorb
Grants and regenerates a physical damage shield
-
MagicAbsorb
Grants and regenerates a magic damage shield
-
Vanilla Attributes
Supports native Minecraft attributes such as health, armor, damage, and movement speed
Lore Tag System
Accessories supports a lore-based tag system.
How It Works
If an accessory item contains lore in the following format:
[xxxx]
the player will automatically receive the corresponding tag:
xxxx
Use Cases
- conditional skills or effects
- integration with other plugins or datapacks
- custom mechanics triggered by player tags
- advanced accessory-based logic
This system allows accessories to interact with external systems without hard dependencies.
评论 0
登录后参与评分
还没有评论,来抢沙发吧