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
is duplicated by 2
Attachments
Comments 3
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?)
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.