Search
This Action will search for a specified block. and return the position of the block.
Makes Up
An Action is fundamentally made up of two main components:
- type
search- data
see SearchData
SearchData
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
target | true | - | The block to search. | |
bound | false | - | The bound to search. | |
result_id | true | - | Found block's position. |
Example
[
{
"type": "search",
"data": {
"target": {
"name": "ice"
},
"bound": [
{
"x": 100,
"y": 190,
"z": 100
},
{
"x": 200,
"y": 190,
"z": 200
}
],
"result_id": "ice_pos"
}
}
]
Last modified: 12 11月 2023