> For the complete documentation index, see [llms.txt](https://ersha.gitbook.io/attributeplus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ersha.gitbook.io/attributeplus/ji-chu-jiao-cheng/shu-xing-jie-shao-bu-fen-shuo-ming/cha-jian-ji-zhi/dun-pai-ji-zhi.md).

# 盾牌机制

## 盾牌机制

> 可以禁止盾牌右键抵消伤害，防止右键盾牌达到无敌的效果\
> 也可以设置盾牌 **冷却机制** 每多少秒可以抵消一次伤害,注意这里不是 **右键后就开始冷却,而是受到攻击抵消伤害后进入冷却** 冷却期间右键抵挡一样会受到伤害,不会抵消

盾牌配置 (attribute.yml)

```yaml
#盾牌
Shield:
  #是否禁止盾牌右键
  right: false
  #盾牌抵挡冷却 right 必须为 false 才会生效 (0=关闭)
  #是盾牌抵挡攻击后进入冷却而不是右键后冷却
  cooling: 10
  message: "&6盾牌格挡 &f格挡进入冷却..."
```

![](/files/-MDcu8C8XD0hKJOPFtj0)
