-
-
Notifications
You must be signed in to change notification settings - Fork 921
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
EntityHurt is not working at 1.20.0 #3501
Comments
Enable debug mode then report packets and reproduction instructions
…On Sun, Nov 10, 2024, 17:04 Erne ***@***.***> wrote:
Im using lastest version of Mineflayer and Minecraft 1.20.0. I tried
everything but bot.on("entityHurt" is not working. I dont know the other
versions but in 1.20.0 with Mineflayer it isnt working. The other entity
actions are working but entityHurt is not
—
Reply to this email directly, view it on GitHub
<#3501>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437U2UFEQAZ2HVNG5SRTZ757ZXAVCNFSM6AAAAABRQLBGZ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DOMZYGIYTKNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
We store entity_status's in mineflayer itself as a map mineflayer/lib/plugins/entities.js Lines 22 to 30 in 3d6e234
this is no longer how entity_hurts are received by the client, it is now it's own packet ( |
Related issue #3184 |
I'm testing the "hurt_animation" and it seems to only fire when the bot itself gets hurt. It doesn't trigger when a different mob gets hit, which is what I think entityHurt was used for. Should "damage_event" packet which has the entityId in it, be used instead? I tested this in 1.20 and 1.21.1 and it should behave the same. bot._client.on('damage_event', (packet) => {
const entity = bot.entities[packet.entityId];
bot.emit('entityHurt', entity);
}) |
Thanks, Im closing issue nothing to do left. I think we should wait for new entityHurt Push or use damage_event |
Im using lastest version of Mineflayer and Minecraft 1.20.0. I tried everything but bot.on("entityHurt" is not working. I dont know the other versions but in 1.20.0 with Mineflayer it isnt working. The other entity actions are working but entityHurt is not
The text was updated successfully, but these errors were encountered: