updated layout and informations authored by Lxlp's avatar Lxlp
Mechanic: Set Level ## Description
=================== Causes the casting mob to change its level.
*Introduced in version 2.2.1*
Causes the casting mob to change it's level. ## Attributes
| Attribute | Aliases | Description | Default |
Possible operations for the action value are SET, ADD, SUBTRACT, |-----------|-----------|----------------------------------------------------------------------|---------|
MULTIPLY, and DIVIDE. | action | a | The type of the operation to perform | SET |
| level | l | Amount used in the operation | 1 |
Attributes
----------
| Attribute | Aliases | Description | Default Value |
|-----------|---------|----------------------------------------|---------------|
| action | a | Type of operation to perform | SET |
| level | l | Amount of levels used in the operation | 1 |
## Action Attribute
Available actions are
- `SET`
- `ADD`
- `SUBTRACT`
- `MULTIPLY`
- `DIVIDE`
Examples
--------
## Examples
This will set the mob level to 3 when it spawns This will set the mob level to 3 when it spawns
```yaml ```yaml
- setlevel{a=set;l=3} @self ~onSpawn - setlevel{a=set;l=3} @self ~onSpawn
...@@ -29,4 +27,8 @@ This will set the mob level to 3 when it spawns ...@@ -29,4 +27,8 @@ This will set the mob level to 3 when it spawns
This will increase the mob level by 1 each time it kills a player This will increase the mob level by 1 each time it kills a player
```yaml ```yaml
- setlevel{a=add;l=1} ~onKillPlayer - setlevel{a=add;l=1} ~onKillPlayer
``` ```
\ No newline at end of file
## Aliases
- [x] modifylevel
\ No newline at end of file