Changes
Page history
Update AttributeModifier
authored
Mar 01, 2026
by
Lxlp
Hide whitespace changes
Inline
Side-by-side
Skills/Mechanics/AttributeModifier.md
View page @
40ff867a
## Description
Adds an attribute modifier to the attributable target
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| attribute | attr | The [attribute] | GENERIC_LUCK
<!--type:PaperAttribute-->
|
| operation | op | The [operation] to perform | ADD_NUMBER
<!--type:
Paper
AttributeOperation-->
|
| name | modifierName | The name of the modifier |
<caster.uuid>
|
| amount | amt, a | The modifier of the attribute | 0 |
| duration | dur | The duration of the attribute | 0 |
## Examples
```
yaml
ExampleMob
:
Type
:
ZOMBIE
Skills
:
-
attributeModifier{attribute=GENERIC_LUCK;a=2;dur=1200;op=ADD_NUMBER} @trigger ~onDeath
```
<!-- LINKS -->
[
attribute
]:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
[
operation
]:
/Items/Attributes#operations
<!--TAGS-->
## Description
Adds an attribute modifier to the attributable target
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| attribute | attr | The [attribute] | GENERIC_LUCK
<!--type:PaperAttribute-->
|
| operation | op | The [operation] to perform | ADD_NUMBER
<!--type:Attribute
Modifier
Operation-->
|
| name | modifierName | The name of the modifier |
<caster.uuid>
|
| amount | amt, a | The modifier of the attribute | 0 |
| duration | dur | The duration of the attribute | 0 |
## Examples
```
yaml
ExampleMob
:
Type
:
ZOMBIE
Skills
:
-
attributeModifier{attribute=GENERIC_LUCK;a=2;dur=1200;op=ADD_NUMBER} @trigger ~onDeath
```
<!-- LINKS -->
[
attribute
]:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
[
operation
]:
/Items/Attributes#operations
<!--TAGS-->
<!--tag:Attribute-->
\ No newline at end of file