跳转到正文

digging API ​

完整接口目录 · 合成与挖掘用法 · 工具包下载

模块说明 ​

text
One ordinary block per cancellable operation; no automatic tool selection.

BlockDigging ​

python
class BlockDigging

BlockDigging.__init__ ​

python
def __init__(self, operations)

BlockDigging.prepare ​

python
def prepare(
    self,
    *,
    position,
    face,
    duration_ms,
    held_item,
    expected_block,
    idempotency_key,
    deadline,
)

SDK 说明:

text
Prepare a 50..10000 ms attempt using a fresh native hotbar reference.

Completion requires a fresh air readback; it does not prove drops or
ownership. Cancel the submitted Operations handle to request abort.
Keep unknown outcomes under the original key; never automatically retry.

Neomega · 使用、开发与参考文档