... | @@ -5,20 +5,9 @@ Causes the target to change its speed attribute |
... | @@ -5,20 +5,9 @@ Causes the target to change its speed attribute |
|
## Attributes
|
|
## Attributes
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| speed | a, amount, m, multiplier, s, v, value | Speed of the entity | 1 |
|
|
| speed | a, amount, m, multiplier, s, v, value | Speed multiplier to apply to the base speed of the entity | 1 |
|
|
| type | t | Type of speed, can be `FLY` or any other string. If not exactly `FLY`, this will change walk speed | WALK |
|
|
| type | t | Type of speed, can be `FLY` or any other string. If not exactly `FLY`, this will change walk speed | WALK |
|
|
|
|
|
|
### Speed Attribute
|
|
|
|
To make this mechanic set a specific [MovementSpeed](/Mobs/Options#movementspeed) its `speed` attribute will need a value of
|
|
|
|
```math
|
|
|
|
speed=MovementSpeed*5
|
|
|
|
```
|
|
|
|
or, to say it in other words
|
|
|
|
```math
|
|
|
|
MovementSpeed=speed/5
|
|
|
|
```
|
|
|
|
So, if you want to set the mob's MovementSpeed to 0.2, you will need a speed value of 1; if you want a MovementSpeed of 0.4, you will need a speed value of 2 and so on
|
|
|
|
|
|
|
|
<!--
|
|
<!--
|
|
This value will then be multiplied by the default speed value of the respective speed type:
|
|
This value will then be multiplied by the default speed value of the respective speed type:
|
|
- `0.1` for `WALK`
|
|
- `0.1` for `WALK`
|
... | | ... | |