> For the complete documentation index, see [llms.txt](https://bloodmoon.pseudonova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bloodmoon.pseudonova.com/events/shield-event.md).

# Shield Event

This event will spawn a shield around the mob

## Required arguments

| Order | Type    | Argument                 |
| ----- | ------- | ------------------------ |
| 1     | number  | duration                 |
| 2     | decimal | percentage of occurrence |

## What it does

Whenever the event is triggered, the mob will get a shield for a specified amount of seconds. The mob won't be able to get attacked until the shield goes down

## Example usage

```yaml
actions:
  speak:
    events:
      - shield 20 100
    commands: []
```

![](https://1951975974-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzYNFIMyIRASmrYbPo8%2F-M0nCD41moYjA8_aN9fy%2F-M0nDxpIpZZgq410T3h6%2Fshield.gif?alt=media\&token=e670cefa-bb5c-4874-a7b2-47327e5f8ec6)
