|
|
|
## Description
|
|
|
|
Sets the base value of the targeted entity's [attribute][]
|
|
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| attribute | attr | The [attribute][] to set | GENERIC_LUCK<!--type:PaperAttribute--> |
|
|
|
|
| amount | amt, a | The amount of the attribute | 0 |
|
|
|
|
| duration | dur | The duration of the attribute | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
|
|
ExampleMob:
|
|
|
|
Type: ZOMBIE
|
|
|
|
Skills:
|
|
|
|
- attribute{attribute=GENERIC_LUCK;a=2;duration=1200} @trigger ~onDeath
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] setattribute
|
|
|
|
|
|
|
|
|
|
|
|
[attribute]: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
|
|
|
|
|
|
|
|
|
|
|
|
<!--TAGS-->
|
|
|
|
<!--tag:Attribute--> |
|
|
\ No newline at end of file |