Skip to content
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

Bot craft table deposit issue #87

Closed
boly38 opened this issue Dec 22, 2024 · 3 comments
Closed

Bot craft table deposit issue #87

boly38 opened this issue Dec 22, 2024 · 3 comments
Assignees
Milestone

Comments

@boly38
Copy link
Collaborator

boly38 commented Dec 22, 2024

🗣️ #77

  • The bot builds a crafting table and sometimes does not know how to place it

ℹ️ better inform in the chat of the problem (known PrismarineJS/mineflayer#2757 )
ℹ️ and/or move a few squares and try again (up to 3 times)

@boly38
Copy link
Collaborator Author

boly38 commented Dec 22, 2024

logs example

15:21:24.273 > botActions> labels:on TriggerChatPattern pattern__5-crafting-table_start 5-crafting-table (craftingTable) user:boly38 userChat:table  2 actions
15:21:37.438 > Error: Event blockUpdate:(125, 63, 208) did not fire within timeout of 5000ms
    at onceWithCleanup (C:\WORK\perso\chicken-bot\node_modules\mineflayer\lib\promise_utils.js:62:26)
    at placeBlockWithOptions (C:\WORK\perso\chicken-bot\node_modules\mineflayer\lib\plugins\place_block.js:13:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async EventEmitter.placeBlock (C:\WORK\perso\chicken-bot\node_modules\mineflayer\lib\plugins\place_block.js:33:5)
    at async placeCurrentBlockAtClearPlace (file:///C:/WORK/perso/chicken-bot/src/minecraft/util/BlockUtil.js:131:5)
    at async BotAction.craftingTableOrder (file:///C:/WORK/perso/chicken-bot/src/minecraft/botActions.js:113:35)

@boly38
Copy link
Collaborator Author

boly38 commented Dec 22, 2024

  • Reproduced: placeBlock error case was to try to placeBlock at player location ! then with retry it was ok

@boly38
Copy link
Collaborator Author

boly38 commented Dec 22, 2024

The addition for now will be the following

  • retry 3 times max (increasing range by 1 each time)
  • add tchat to report the target block name + block below name to inform why bot just failed to placeBlock (this to improve undestanding of mineflayer issue)

this is not a full fix but a step ahead

@boly38 boly38 self-assigned this Dec 22, 2024
@boly38 boly38 added this to the v1.0.6 milestone Dec 27, 2024
@boly38 boly38 closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant