ActionFlow Help

Example

There will be several examples for using the Action.

MushroomStem

This actions is used to break the mushroom stem.

Compose

This action basically consists of several main components:

  • repair

  • autoEat

  • triggerDigger

  • simpleDrop

  • simpleStore

Example

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

GlowLichen

This action is used to break the glow lichen.

Compose

This action basically consists of several main components:

  • repair

  • autoEat

  • simpleDigger

  • simpleStore

Example

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

Nylium

This action is used to place netherrack and dug when it is turned into nylium.

Compose

This action basically consists of several main components:

  • 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 } } ]

Ice

This action is used to search for ice and dig it.
Implemented with ResultReference.

Compose

This action basically consists of several main components:

  • repair

  • autoEat

  • search

  • move

  • rangeDigger

  • simpleDrop

Example

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