mojira.dev
MC-213947

"Entity killed" event does not work in most cases

21w05a added the entity killed event. However, the entity hurt event overrides this in most cases, except for killing an armor stand. (It also does not work for boats, items, or minecarts, but the way the code is written makes these specific instances seem intentional)

This can be seen by attaching a comparator to a sculk sensor. Killing most entities gives a power of 8, while it should give a power of 13.

Relates to MC-213668

Linked issues

Comments 4

Can confirm, sculk sensors prefer the entity damaged. Though the event is still emitted properly, so it's a case of removing the emission of entity hurt if the entity dies

Can confirm for 21w08b

Can confirm for release 1.19

This looks fixed to me in 23w05a (possibly earlier). Killing an entity with either /kill or manually gives an output of 13. Can someone please double check?

PancakeIdentity

(Unassigned)

Confirmed

Platform

Normal

Game Events

sculk_sensor

21w05a, 21w05b, 21w06a, 21w08b, 21w10a, 1.19

Retrieved