ActionFlow-zh Help

範例

將有幾個使用該行動的例子

蘑菇柄

這個行動是用來破壞蘑菇柄的。

組成

這個行動基本上由幾個主要組件組成:

  • repair

  • autoEat

  • triggerDigger

  • simpleDrop

  • simpleStore

示例

[ { "type": "repair", "data": { "repair_warp_point": "warp_10" } }, { "type": "autoEat" }, { "type": "triggerDigger", "data": { "targets": [ { "pos": { "x": 1, "y": 5, "z": 1 }, "blockProps": { "name": "mushroom_stem" } }, { "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" } } ], "tool": "axe", "can_move": false } }, { "type": "simpleDrop", "data": { "droppable": [ { "item_id": "brown_mushroom", "yaw": 0, "pitch": 0 } ], "drop_threshold": 5 } }, { "type": "simpleStore", "data": { "box": [ { "item_id": "mushroom_stem", "pos": { "x": 5, "y": 5, "z": 5 } } ], "empty_slot_threshold": 5, "can_move": false } } ]

發光苔蘚

這個行動是用來挖掘發光苔蘚的。

組成

這個行動基本上由幾個主要組件組成:

  • repair

  • autoEat

  • simpleDigger

  • simpleStore

示例

[ { "type": "repair", "data": { "repair_warp_point": "warp_10" } }, { "type": "autoEat" }, { "type": "simpleDigger", "data": { "targets": [ { "pos": { "x": 1, "y": 1, "z": 1 }, "blockProps": { "name": "glow_lichen", "properties": { "Down": true } } } ], "tool": "shears", "can_move": false } }, { "type": "simpleStore", "data": { "box": [ { "item_id": "glow_lichen", "pos": { "x": 5, "y": 5, "z": 5 } } ], "empty_slot_threshold": 5, "can_move": false } } ]

菌絲石

這個行動是用來放置地獄石與挖掘菌絲石的。

組成

這個行動基本上由幾個主要組件組成:

  • repair

  • autoEat

  • simplePlace

  • simpleTake

  • simpleDigger

  • simpleStore

Example

[ { "type": "repair", "data": { "repair_warp_point": "warp_10" } }, { "type": "autoEat" }, { "type": "simpleTake", "data": { "box": [ { "item_id": "netherrack", "pos": { "x": -5, "y": 5, "z": -5 }, "min_threshold": 1, "max_threshold": 10 } ], "can_move": false } }, { "type": "simplePlace", "data": { "targets": [ { "item_id": "netherrack", "pos": { "x": 2, "y": 1, "z": 3 } }, { "item_id": "netherrack", "pos": { "x": 1, "y": 1, "z": 3 } }, { "item_id": "netherrack", "pos": { "x": 2, "y": 1, "z": 1 } }, { "item_id": "netherrack", "pos": { "x": 1, "y": 1, "z": 1 } } ], "can_move": false } }, { "type": "simpleDigger", "data": { "targets": [ { "pos": { "x": 2, "y": 1, "z": 3 }, "blockProps": { "name": "crimson_nylium" } }, { "pos": { "x": 1, "y": 1, "z": 3 }, "blockProps": { "name": "crimson_nylium" } }, { "pos": { "x": 2, "y": 1, "z": 1 }, "blockProps": { "name": "crimson_nylium" } }, { "pos": { "x": 1, "y": 1, "z": 1 }, "blockProps": { "name": "crimson_nylium" } } ], "tool": "pickaxe", "can_move": false } }, { "type": "simpleStore", "data": { "box": [ { "item_id": "crimson_nylium", "pos": { "x": 5, "y": 5, "z": 5 } } ], "empty_slot_threshold": 5, "can_move": false } } ]

這個行動是用來挖掘冰的。
使用結果參考來獲取冰的位置。

組成

這個行動基本上由幾個主要組件組成:

  • repair

  • autoEat

  • search

  • move

  • rangeDigger

  • simpleDrop

示例

[ { "type": "repair", "data": { "repair_warp_point": "warp_10" } }, { "type": "autoEat" }, { "type": "search", "data": { "target": { "name": "ice" }, "result_id": "ice_pos" } }, { "type": "move", "data": { "targets": [ { "pos": "ice_pos", "fuzzy": true, "fuzzy_range": 1 } ], "speed": 20 } }, { "type": "rangeDigger", "data": { "block_props": [ { "name": "ice" } ], "tool": "pickaxe", "range": 5, "max_dig_amount": 3 } }, { "type": "simpleDrop", "data": { "droppable": [ { "item_id": "ice", "yaw": 0, "pitch": 90 } ], "drop_threshold": 2 } } ]
Last modified: 12 11月 2023