# Attack

## 属性 <a href="#attack" id="attack"></a>

|                                                                                                       |
| ----------------------------------------------------------------------------------------------------- |
| <p><strong>int attack</strong><br>攻击值。</p>                                                            |
| <p><strong>int knockBack</strong><br>攻击的击退值。</p>                                                      |
| <p><strong>int crit</strong><br>攻击的百分暴击率。1-100表示1-100%的概率产生双倍暴击伤害，大于100表示总是产生双倍暴击伤害，小于1表示不产生暴击伤害。</p> |

## 函数 <a href="#attack" id="attack"></a>

| 函数                                                                                              |
| ----------------------------------------------------------------------------------------------- |
| <p><strong>Attack Attack.new(int attack, int knockBack, int crit)</strong><br>返回一个Attack实例。</p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blueyoshi.gitbook.io/terracraft/cn/mod/game-api/attack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
