ActionFlow Help

SimpleDigger

This Action is designed for digging, it can be customized to dig a specific position with specific block and status.

Makes Up

An Action is fundamentally made up of two main components:

type

simpleDigger

data

see SimpleDiggerData

SimpleDiggerData

Parameter

Type

Required

Default

Description

targets

Target array

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 can_move is true)

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

Position

true

-

The position of the block to dig.

blockProps

BlockProps

false

-

The properties of the block to dig.

Example

[ { "type": "simpleDigger", "data": { "targets": [ { "pos": { "x": 1, "y": 1, "z": 1 }, "blockProps": { "name": "glow_lichen", "properties": { "Down": true } } } ], "tool": "shears", "can_move": false } } ]
Last modified: 12 11月 2023