Closed sefirosweb closed 1 year ago
Yeah, this is very inefficient, there needs to be a better algorithm to do this. Reminder this algorithm would also need to work with 1.12 and below which do not have this extra state data you’re using.
A good starting point would be the getChestType
function here:
https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/block_actions.js#L37
How can I make it compatible with old versions if I don't have all the information (is looking at)
Same way the client does. Block actions plugin is a good start.
Fixed by imharvol
Is your feature request related to a problem? Please describe.
When you want to find the chests you have an issue with the findblock function this duplicate the blocks when is double chest
Describe the solution you'd like
I made some code for to do that, but i'm not sure if that have sense to add into mineflayer, What you think?
The code: