TriggerDigger
This Action is designed for digging when trigger block is detected.
Makes Up
An Action is fundamentally made up of two main components:
- type
triggerDigger- data
TriggerDiggerData
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
targets | true | - | The list of blocks to dig. | |
tool | string | true | - | The tool to use for digging. (e.g. pickaxe, shovel, axe, shears) |
can_move | boolean | false | false | Whether the bot can move while digging. |
fuzzy_range | number | false | 3 | The range to stop when moving to the target. (Only works when |
flying | boolean | false | false | Whether the bot can fly while digging. |
max_dig_amount | number | false | 1 | The maximum amount of blocks to dig at once. |
target
The block to dig.
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
pos | true | - | The position of the block to dig. | |
blockProps | false | - | The properties of the block to dig. |
Example
[
{
"type": "triggerDigger",
"data": {
"targets": [
{
"pos": {
"x": 1,
"y": 4,
"z": 1
},
"blockProps": {
"name": "mushroom_stem"
}
},
{
"pos": {
"x": 1,
"y": 3,
"z": 1
},
"blockProps": {
"name": "mushroom_stem"
}
},
{
"pos": {
"x": 1,
"y": 2,
"z": 1
},
"blockProps": {
"name": "mushroom_stem"
}
},
{
"pos": {
"x": 1,
"y": 1,
"z": 1
},
"blockProps": {
"name": "mushroom_stem"
}
}
],
"tool": "axe",
"can_move": false
}
}
]
Last modified: 12 11月 2023