mojira.dev
MC-260763

Interaction entities' {attack:{____}} does not detect attacks from player's projectiles

The only time {attack:{}} gets updated in an interaction entity is upon LeftClick (punch).

Due to the way "on attacker" works inside the /execute command, the assumed result would be anytime interaction is attacked but it only works with LeftClick.

 

Reproduce:

Summon a minecraft:interaction.
Use either execute on attacker or @s[nbt={attack:{}}] to detect when it is attacked
It will only update on punch, not on projectile

Now summon a minecraft:pig (or anything similar)
Use execute on attacker to detect when it is attacked
It will update on punch, or projectile, or any other attack on it

Comments 0

No comments.

the1kingsam

(Unassigned)

Confirmed

Entities

1.19.4 Pre-release 3, 1.19.4 Pre-release 4, 23w35a

Retrieved