> For the complete documentation index, see [llms.txt](https://mc-origin.gitbook.io/originattribute/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mc-origin.gitbook.io/originattribute/pei-zhi-wen-jian/shang-hai-ti-shi.md).

# 伤害提示

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'))
  }

```
