ActionFlow-zh Help

簡易挖掘

這個動作(Action)是為挖掘而設計的,它可以自定義以挖掘具有特定塊和狀態的特定位置。

組成

一個動作(Action)基本上由兩個主要組件組成:

類型(type)

simpleDigger

數據(data)

參見 簡易挖掘數據

簡易挖掘數據(SimpleDiggerData)

Parameter

Type

Required

Default

Description

targets

目標陣列

-

要挖掘的方塊。

tool

字串

-

要使用的工具。 (例如: pickaxe, shovel, axe, shears)

can_move

布林值

false

機器人在挖掘時是否可以移動。

fuzzy_range

數字

3

移動到目標時停止的範圍。 (僅在 can_move 為 true 時有效)

flying

布林值

false

機器人在挖掘時是否可以飛行。

max_dig_amount

數字

1

同時挖掘的最大方塊數量。

目標(Target)

目標方塊。

Parameter

Type

Required

Default

Description

pos

位置

-

要挖掘的方塊的位置。

blockProps

方塊屬性

-

要挖掘的方塊的屬性。

示例

[ { "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