Move
The move action is used to move to a specific location.
Makes Up
An Action is fundamentally made up of two main components:
- type
move- data
see MoveData
MoveData
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
targets | true | - | The list of positions to move to. | |
speed | number | false | 19 | The speed of the bot between 1 and 20. |
target
Position to move to.
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
pos | true | - | The position to move to. | |
fuzzy | boolean | false | false | Whether to use fuzzy position. |
fuzzy_range | number | false | 5 | The range of fuzzy position, only works when fuzzy is true. |
Example
[
{
"type": "move",
"data": {
"targets": [
{
"pos": {
"x": 1,
"y": 1,
"z": 1
},
"fuzzy": false
},
{
"pos": {
"x": 12,
"y": 3,
"z": 9
},
"fuzzy": false
},
{
"pos": {
"x": 3,
"y": 7,
"z": 22
},
"fuzzy": true,
"fuzzy_range": 3
}
],
"speed": 18
}
}
]
Last modified: 12 11月 2023