# 弓箭机制

## 弓箭机制

> 可自定义全服默认的弓箭 **射速** 及 **精准度** 兼容 **高版本弩** 物品\
> 新属性 **弓箭射速 / 箭术精准 / 箭术穿透** 标签, **箭术穿透** 仅支持 1.14+ 服务器版本,可穿透实体次数\
> 射速将影响箭实体的 **飞行速度** 精准度将 **影响命中** 准心,同时支持应用于怪物身上\
> \
> 支持 **自定义计算公式** 及 **PlaceholderAPI** 变量

弓箭机制配置 (attribute.yml)

```yaml
#弓箭机制
ShootMechanism:
  #是否启动
  enable: false
  default:
    #是否对怪物生效
    mod: false
    #蓄力影响
    #拉满则可以打出满射速的箭,如果没拉满则按力道削弱速度
    #拉满精准度会提高,没拉满精准度则会降低,精准度不会超过 默认值+属性加成
    force: true
    #速度 (数值越大速度越快)
    speed: 2.0
    #偏离 (数值越大偏离越大)
    spread: 3.0
    #穿透 1.14+ 版本支持,其他版本爬
    through:
      #是否启用
      enable: false
      #穿透次数 (箭术穿透触发时穿透实体次数)
      amount: 3
  # 1.7 则默认下方格式无法修改,1.7+版本可自定义
  # 支持 PlaceholderAPI 变量,同时属性可为随机值类型
  plan:
    #弓箭射速 标签计算公式,基础射速 + (属性值 * 0.05)
    speed: "{attr}*0.05"
    #箭术精准 标签计算公式,偏离度 - (属性值 * 0.05)
    spread: "{attr}*0.05"
```


---

# 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://ersha.gitbook.io/attributeplus/ji-chu-jiao-cheng/shu-xing-jie-shao-bu-fen-shuo-ming/cha-jian-ji-zhi/gong-jian-ji-zhi.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.
