mojira.dev
MC-304095

Holding a spear prevents attack interactions with interaction entities

Normally, left-clicking an Interaction entity saves the attacker on its NBT data, allowing commands to detect the left click.

However, they seem to ignore their attackers when any weapon with minecraft:piercing_weapon component such as spears hits them.

How to replicate:

  1. /summon interaction

  2. Get a spear

  3. Attack it with the spear

  4. /data get entity @n[type=interaction]

You will notice that the “attack” NBT field is completely empty. If you repeat this with any other item, that field gets filled up like normal.

Environment

Datapacks or maps that use interaction entities in 25w45a

Attachments

Comments 3

As shown as slicedlime in their snapshot video, this was not actually fixed despite being flagged as such: https://www.youtube.com/watch?v=CH_mI68_Ljk
I recommend this bug report being reopened until it is actually fully addressed and fixed.

The test shown in slicedlime’s video was incorrectly performed; this bug has actually been fixed.

Okay yeah just tested it in my own pre-release version, this is indeed fixed. Thank you for the correction, and apologies for the trouble.

Not Una Nancy Owen

(Unassigned)

1514129

Confirmed

Expansion A

Important

Data Packs

25w45a

1.21.11 Pre-Release 1

Retrieved