伤害提示

attribute文件夹内的config

重要的事情说三遍 attribute文件夹内 attribute文件夹内 attribute文件夹内

attribute文件夹内的config.yml

attribute文件夹内的config.yml

attribute文件夹内的config.yml

script:
  javascript-def0:
    types: ATTACK
    value-type: SINGLE
    combat-power: 1.0
    keywords:
      - '真实伤害'

#下面这些是信息提示   不需要直接删掉就好  或者 注释掉
damage-handler: |-
  if(openAPI.hasLabel("@Crit")) {
    openAPI.attacker.sendMessage('暴击' + openAPI.totalDamage)
  } else {
    openAPI.attacker.sendMessage('伤害' + openAPI.totalDamage)
  }

  if(openAPI.hasLabel("@SuckBlood")) {
      openAPI.attacker.sendMessage('吸血' + openAPI.getLabel('suck-blood'))
  }

Last updated

Was this helpful?