#Attack event
4 messages · Page 1 of 1 (latest)
4 messages · Page 1 of 1 (latest)
Is there an event for the attack of an entity? For example when a zombie attacks the player? If yes, how can I get the attacked entity and the attacker?
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Yes
EntityEvents.hurt("minecraft:player", event => {
let attacker = event.source.actual
let attacked = event.entity
})
Thanks a lot