mojira.dev
MC-269130

Attack indicator is not displayed when holding a Diamond or Netherite Hoe

Description:

The attack indicator does not show at all when a player is holding a Diamond or Netherite Hoe when looking at mobs.

How to Reproduce:

  1. Summon a mob, and give yourself an Iron Hoe and a Diamond/Netherite Hoe using the commands provided.

    /summon minecraft:villager ~ ~ ~ {NoAI:1b}
    /give @s minecraft:iron_hoe
    /give @s minecraft:diamond_hoe
  2. Equip the Iron Hoe and look at the villager.
    → ✔ Attack indicator displays under the crosshair.

    [media]
  3. Equip the Diamond/Netherite Hoe and look at the villager.
    → ❌ Attack indicator does not display under the crosshair.

    [media]

Observed Behavior:

Diamond and Netherite Hoes do not display the attack indicator when looking at entity.

Expected Behavior:

Diamond and Netherite Hoes would display the attack indicator when looking at entity.

Linked issues

Attachments

Comments 2

This bug was created from a recurring issue from MC-267956.
Possible cause is the attack speed attribute.

Can confirm, this is caused by diamond and netherite hoes sharing the same attack speed as an empty hand, and empty hand attacks are specifically programmed to not show the full attack indicator when hovering.

Johnden

(Unassigned)

Confirmed

Platform

Normal

Items

24w10a, 24w11a, 24w12a, 24w13a, 24w14a, ..., 24w40a, 1.21.2, 1.21.3, 1.21.4, 1.21.5

Retrieved