#Attack event

4 messages · Page 1 of 1 (latest)

mortal drum
#

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?

fresh ferryBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

limber tundra
#

Yes

EntityEvents.hurt("minecraft:player", event => {
  let attacker = event.source.actual
  let attacked = event.entity
})
mortal drum
#

Thanks a lot