mojira.dev
MC-93086

Punching invulnerable entities plays player attack sound

Punching the following entities plays weak attack sounds (entity/player/attack/weak) even though no damage was dealt.

  • Invulnerable mobs

  • Teammates when friendly fire is disabled

  • Players of Creative mode

  • Wither (When spawned)

Linked issues

Attachments

Comments 19

Well, you're generally "attacking" the entity. Wonder if this works with the Invulnerable tag on?

Also occurs in Invulnerable tag.

9 more comments

Can confirm in 21w06a. Video attached.

Can confirm in 21w07a. Feel free to use the following command to reproduce this issue (works with an entity):

/summon minecraft:cow ~ ~ ~ {Invulnerable:1b}

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w11a.

Can confirm in 21w17a.

Charlotte Buff

(Unassigned)

Confirmed

Sound

attack, hit, hitting, punch, punching, sound

Minecraft 15w47c, Minecraft 15w49a, Minecraft 15w49b, Minecraft 15w50a, Minecraft 15w51b, ..., 21w06a, 21w07a, 21w08b, 21w11a, 21w17a

Retrieved