dispatchers.custom-trigger.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AttributeSystem Show documentation
Show all versions of AttributeSystem Show documentation
Bukkit Attribute Engine Plugin.
The newest version!
custom entity fight:
triggers: [ entity damage by entity ]
context:
attacker: "@event damager"
defender: "@event entity"
namespaces: [ bukkit ]
pre-handle: |-
print attack!
if check &attacker !type LivingEntity || &defender !type LivingEntity then exit
if check &attacker type Player then {
&attacker message '你在打东西! 爱来自 plugins/AttributeSystem/dispatchers/custom-trigger.yml'
}
post-handle:
type: js
content: |-
print(" entity damage by entity 处理完了! 爱来自 plugins/AttributeSystem/dispatchers/custom-trigger.yml")
exception: |-
warning '触发器 custom entity fight 处理失败! 具体报错请看后台! 爱来自 plugins/AttributeSystem/dispatchers/custom-trigger.yml'