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

Can not stack up and thinks it mined the block?

SinanAkkoyun opened this issue · comments

commented

Hi,
super cool plugin, but if you place a block above the bot and give it cobble and dirt etc

It goes under the block x z, but it doesnt care about y?!

Then it plays the mining animation and says its done even though the block is 100m above the bot

Please fix! Love the module!!

This is caused by how your pathfinder plugin is configured. CollectBlock uses the Pathfinder plugin to control movement. If the pathfinder is configured to not place blocks, it will get as close to the target as it can and will stop. In this case, the pathfinder plugin is assuming it does not have permission to place blocks, to the bot stands under the target instead.

commented

@TheDudeFromCI
Thank you for your reply!

But I did not configure it to not build.
I even added sanstone manually to the list of blocks it can use for scaffolding!

Could you please provide code for a config that works?

The problem is that it is stacking up like 2 blocks, then mining the air and then saying "Done", but the block still is 50m above the bot...

commented

Oh, and I also tried to set the place cost to 0, but didn't change anything