mojira.dev
MC-302900

Spears' reach overrides the player's entity interaction range

Spear’s and Creative Mode’s range dont stack together. Spear’s range overrides Creative Mode’s +0.7 interaction range, resulting in Creative Mode spear having the same amount of reach as a Survival Mode spear.

Linked issues

Attachments

Comments 3

Tested in 1.21.11 Pre-release 2, and this still appears to not be “fixed”.
Giving the player a base entity interaction range of 10 and then attempting to hit a mob from 10 blocks works (including attack indicator) but this fails when holding a spear/item with attack range component.

I’m curious if this is supposed to be flagged as “Works as Intended” instead, since the post on Pre-Release 1 states that attack reach component directly overrides the player’s interaction range.

The ideal fix is to simply let the max range of the component scale up if the entity interaction range is increased while still respecting the min range and the resulting disjoint hitbox, but if it’s working as intended then I’d argue it should be flagged as such.

This still happens in 1.21.11 Pre-Release 3, despite once again being resolved as fixed. Mojang simply added a creative modifier to the effective range of the component, however it still has not actually fixed this issue (which they claim directly to have fixed again). This should either be marked as Works as Intended, or the minecraft:attack_range component should take into account entity interaction range (perhaps applying the attribute modifiers to it on top of the max reach as if it were the base value for the attribute?)

Changing the resolution to Works As Intended. The latest pre-release added a creative modifier to the effective range of the component. However the issue described in this ticket is actually intended behavior, the attack reach component should override the player’s interaction range

Jeuzs

(Unassigned)

1503864

Confirmed

Expansion A

Items, Player

25w41a, 25w42a, 1.21.11 Pre-Release 2

1.21.11 Pre-Release 1, 1.21.11 Pre-Release 3

Retrieved