Update movetoblock authored by Lxlp's avatar Lxlp
Goal: Move To Block ## Description
--------------
Makes the mob move towards the specified block type. Makes the mob move towards the specified block type.
### Attributes
## Attributes
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|----------------|----------|-----------------------------------------------|:-------:| |----------------|----------|-----------------------------------------------|---------|
| material | | The block type to target | | | material | m, mat | The block type to target | IRON_ORE<!--type:Material--> |
| radius | | The radius in which to search for the block | | | radius | r, search, searchrange | The radius in which to search for the block | 8 |
| radiusy | | The y radius in which to search for the block | | | radiusy | ry, verticalsearchrange, vsearch, yr, yradius | The y radius in which to search for the block | 2 |
| speed | | The speed of movement | | | speed | s | The speed of movement | 0.9 |
### Examples ### Examples
```yaml ```yaml
ExampleMob: ExampleMob:
Type: Pig Type: Pig
...@@ -22,3 +19,7 @@ ExampleMob: ...@@ -22,3 +19,7 @@ ExampleMob:
- clear - clear
- moveToBlock{material=STONE;radius=8;radiusY=2;speed=0.9} - moveToBlock{material=STONE;radius=8;radiusY=2;speed=0.9}
``` ```
## Aliases
- [x] gotoblock
\ No newline at end of file