-
-
Notifications
You must be signed in to change notification settings - Fork 938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Event blockUpdate:(10651, 64, 99656) did not fire within timeout of 5000ms #2757
Comments
and like 99% of the examples result in bugs, you should specify the tested version for mineflayer |
open for PR |
Any updates? |
hi bro |
Not really..... |
Also confirm in 4.5.1 |
Still a thing in the latest version (4.20.0). |
For now I just catch the error and ignore it. for (const coord of blocksToFarm) {
await new Promise( (resolve, reject) => {
bot.pathfinder.setGoal(new GoalNear(coord.x, coord.y, coord.z, 1));
bot.once('goal_reached', async () => {
const block = bot.blockAt(coord, false);
const seedItem = bot.inventory.items().find(item => item.name === "wheat_seeds");
if (seedItem === undefined) {
bot.chat(`/tell ${username} I need seeds.`);
reject('NoSeeds');
}
try {
await bot.dig(block, true);
await bot.equip(seedItem, 'hand');
const position = bot.blockAt(new Vec3(coord.x, coord.y-1, coord.z));
await bot.placeBlock(position, new Vec3(0, 1, 0));
resolve();
} catch (err) {
if (err.message.includes('Event') && err.message.includes('did not fire within timeout')) {
console.log('Timeout error occured.');
resolve();
} else {
console.log(err);
reject();
}
}
});
});
} |
|
This make me understand that depend on the block below, then the issue is reproduced:
To fix that it would be great to tell here (or remind or document) the good way to find clear position to place a block :) (as it's a common need) 👍
|
(+reproduced same issue when bot is trying to place item at player position // possible fix in findClearPosition using round() => |
Versions
Detailed description of a problem
when using example farmer.js I got an error: Error: Event blockUpdate:(10651, 64, 99656) did not fire within timeout of 5000ms
What did you try yet?
Did you try any example? Any error from those? YES, the exact error I'm facing
Your current code
Expected behavior
It should farm
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: