mojira.dev
MC-304366

The attack_range component is not displayed as a tooltip, despite being different on spears

The new Attack Range component is hidden as a tooltip on items, despite spears not having the default value of 3 that other tools have. This is inconsistent with the Attack Damage and Attack Speed attributes, which differ between weapon types and thus are displayed.

Expected Result: All tools display their Attack Range component as a tooltip alongside their Attack Damage and Attack Speed, as spears have a non-default value that should be communicated.

Observed Result: The Attack Range attribute is a hidden tooltip, misleading players into thinking spears have the same as everything else

Attachments

Comments 5

Note that this is also inconsistent with the Combat Tests' Attack Reach stat, which is correctly displayed as a tooltip due to certain tools not using the default value. Spears are in the same situation, and yet the Attack Range statistic is hidden.

attack_range is not an attribute, because it’s more than just one value (it has a lower and upper bound). entity_interaction_range is the attribute version, which spears don’t touch.

It’s a component not an attribute yes, but that’s semantics, the point is that it has a reach of 4.5 instead of 3 and that’s not communicated because the tooltip is hidden. Its minimum distance requirement does not necessarily need to be stated, because it’s a mechanic exclusive to spears, but the maximum reach difference not being communicated is misleading.

What it would look like if the component were fixed to display the difference between spears and other weapons:

Attack Range display.png

Can confirm, but I suspect Mojang will consider this a feature request. If so, this will make a fine addition to my ever-growing list of suggestions for improving item tooltips.

SeaOfPixels

(Unassigned)

1524492

Confirmed

Expansion A

Normal

Items, UI

1.21.11 Pre-Release 1, 1.21.11 Pre-Release 2

Retrieved