Skip to content
Discussion options

You must be logged in to vote

It doesn’t seem mineflayer has hooks for this, so therefore, as of now you can use ‘bot._client.on(“ tracked_waypoint”, (packet) => { })’ to do stuff based on the packet.
First, getting the id of the waypoint, based on packet.waypoint.hasUUID, if true, is packet.waypoint.uuid, otherwise packet.waypoint.id
And then, packet.operation, which can be one of: track, untrack, update
The packet.waypoint has the type, for which you should do something. https://prismarinejs.github.io/minecraft-data/?d=protocol&v=1.21.8#play.toClient.types.packet_tracked_waypoint I would only use type 1, as its the most accurate

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lyuwenhan
Comment options

Answer selected by lyuwenhan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants