> 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

## 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: []
```

![](/files/-M0nDxpIpZZgq410T3h6)
