|
|
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.
|
|
|
|
|
|
Possible operations for the action value are SET, ADD, SUBTRACT,
|
|
|
MULTIPLY, and DIVIDE.
|
|
|
|
|
|
Attributes
|
|
|
----------
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|-----------|---------|----------------------------------------|---------------|
|
|
|
| action | a | Type of operation to perform | SET |
|
|
|
| level | l | Amount of levels used in the operation | 1 |
|
|
|
## Attributes
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| action | a | The type of the operation to perform | SET |
|
|
|
| level | l | Amount 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
|
|
|
```yaml
|
|
|
- setlevel{a=set;l=3} @self ~onSpawn
|
... | ... | @@ -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
|
|
|
```yaml
|
|
|
- setlevel{a=add;l=1} ~onKillPlayer
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
- [x] modifylevel |
|
|
\ No newline at end of file |