PrismarineJS / mineflayer-collectblock

A simple utility plugin for Mineflayer that add a higher level API for collecting blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add feature for appending new targets to the collection

TheDudeFromCI opened this issue · comments

It would be a useful feature to be able to append new targets to be collected without stopping the current selection or waiting for the current task to finish before starting a new one.

const coalVein = bot.collectBlock.findFromVein(coal)
bot.collectBlock.collect(coalVein, { apend: true})

const ironVein = bot.collectBlock.findFromVein(iron)
bot.collectBlock.collect(ironVein, { apend: true})

const goldVein = bot.collectBlock.findFromVein(gold)
bot.collectBlock.collect(goldVein, { apend: true})