diff --git a/src/entities.ts b/src/entities.ts index 89720eade..50f28c0e7 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -95,6 +95,13 @@ customEvents.on('gameLoaded', () => { } }) + bot._client.on('entity_status', (data) => { + const { entityId, entityStatus } = data + if (entityStatus === 2 && viewer.entities.entities[entityId]) { + viewer.entities.handleDamageEvent(entityId, entityStatus) + } + }) + const loadedSkinEntityIds = new Set() const playerRenderSkin = (e: Entity) => {