🔧能力修改器
最后更新于
EnchantmentReform 注册了 28 个内置修改器键。能力修改器会在能力条件之后、能力之前,按照 YAML 中的顺序依次执行。
modifiers:
unique-entry-id:
type: damage
conditions: {}
random: 1
cooldown: 0
operation: MULTIPLY
value: 1.25type
必填
已注册的修改器键。键不区分大小写,且 - 会被规范化为 _。
conditions
空
带类型的能力条件;每个子条件都必须通过。
random
1
应用概率。
cooldown
0
按来源、能力和配置路径分别计算的冷却时间,单位为秒。
通用检查按照以下顺序执行:条件、概率,然后获取冷却。某个修改器的事件专用实现即使之后发现当前上下文不兼容,也可能已经获取了通用冷却。
SET
操作数
ADD
原始值 + 操作数
SUBTRACT
原始值 - 操作数
MULTIPLY
原始值 × 操作数
DIVIDE
原始值 ÷ 操作数;操作数为零时保留原始值
MIN
原始值与操作数中的较小值
MAX
原始值与操作数中的较大值
damage
heal
duration
yield
radius
cooldown_time
item_damage
food
exhaustion
experience
lunge_power
air
armor_pierce
missing_health_damage
stack_damage_modifier
revive
warden_anger
elytra_boost_not_consume
modify_drops
modify_projectile
replace_projectile
trade_uses_return
trade_emerald_return
fishing_catch
fishing_extra_catch
fishing_replace_catch
fishing_smelt_catch
fishing_hook_timing
最后更新于