PrismarineJS / mineflayer-collectblock

A simple utility plugin for Mineflayer that add a higher level API for collecting blocks.
MIT License
39 stars 25 forks source link

Can not stack up and thinks it mined the block? #43

Open SinanAkkoyun opened 3 years ago

SinanAkkoyun commented 3 years ago

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!!

TheDudeFromCI commented 3 years ago

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.

SinanAkkoyun commented 3 years ago

@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...

SinanAkkoyun commented 3 years ago

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