All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dispatchers.custom-trigger.yml Maven / Gradle / Ivy

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'




© 2015 - 2024 Weber Informatics LLC | Privacy Policy