自定义属性energyShield,玩家身上有一层energyShield,法术没有反应,不知道是我的问题,还是插件的问题
代码在测试CheckRequirements是否好用,版本为1.19.3、magic10.8.5
代码如下
passive: true
triggers:
- trigger: sneak
actions:
cast:
- class: CheckRequirements
requirements:
- attributes:
- attribute: energyShield
min: 1
max: 1
actions:
- class: Heal
parameters:
target: self
amount: 20
interval: 20000
代码在测试CheckRequirements是否好用,版本为1.19.3、magic10.8.5
代码如下
passive: true
triggers:
- trigger: sneak
actions:
cast:
- class: CheckRequirements
requirements:
- attributes:
- attribute: energyShield
min: 1
max: 1
actions:
- class: Heal
parameters:
target: self
amount: 20
interval: 20000