-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
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. |
Beta Was this translation helpful? Give feedback.
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