|
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 |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| action | a | The type of the operation to perform | SET |
|
|
|
|
| level | l | Amount used in the operation | 1 |
|
|
|
|
|
|
Possible operations for the action value are SET, ADD, SUBTRACT,
|
|
|
|
MULTIPLY, and DIVIDE.
|
|
|
|
|
|
|
|
Attributes
|
|
## Action Attribute
|
|
----------
|
|
Available actions are
|
|
|
|
- `SET`
|
|
|
|
- `ADD`
|
|
|
|
- `SUBTRACT`
|
|
|
|
- `MULTIPLY`
|
|
|
|
- `DIVIDE`
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|
|-----------|---------|----------------------------------------|---------------|
|
|
|
|
| action | a | Type of operation to perform | SET |
|
|
|
|
| level | l | Amount of levels used in the operation | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
... | @@ -30,3 +28,7 @@ This will increase the mob level by 1 each time it kills a player |
... | @@ -30,3 +28,7 @@ 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
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] modifylevel |
|
|
|
\ No newline at end of file |