mojira.dev
MC-263461

No attack event happens when there are multiple possible targets

Steps to reproduce:
0 - Be on flat ground and in survival or adventure mode.
1 - /summon minecraft:interaction ~ ~ ~ {width:3.0f, height:3.0f}
2 - /summon husk ~ ~ ~3.8 {NoAI:1b,Silent:1b}
3 - /tp @s ~ ~ ~ 0 0 and left click

What I expected would happen:
either the interaction entity or the husk would get hit

What actually happened:
no attack event has occured - husk didn't get hit and interaction did not register an attack
(Can be checked by running /data get entity @e[type=minecraft:interaction,sort=nearest,limit=1] attack)

Linked issues

Attachments

Comments 4

can confirm in 1.20

@@unknown

You need to be in adventure or survival mode for it to happen. make sure to not move at all between the steps!

I also unable to reproduce in 1.20.1 and 1.20

When trying to confirm this myself by following the provided steps, I found that you can't attack the husk because it's out of your attack range, not because of the interaction entity:

[media]

The interaction entity is not attacked due to MC-260305

ANTHINY609

(Unassigned)

Unconfirmed

(Unassigned)

1.20.1

Retrieved