mojira.dev
MC-302827

Spears can jab through walls

Spear jabs can harm any entity within its range, even through walls.

Simple as that.

Environment

Windows 11, Java 21

Linked issues

Attachments

Comments 1

To be more specific, the spear does check if a block is in the way of its attack, however it is between min reach and max reach. If the block is in front of the player but at a distance less than the min reach, it cannot be picked and thus fails. This should be easy to fix, make it pick blocks from the entity’s eye position to its max reach instead and cancel it if the block hit result is less than the min reach.

Kris Chambers

(Unassigned)

1498386

Confirmed

Expansion A

Important

Combat, Items

25w41a

25w42a

Retrieved