Shield is incompatible with spear because the spear charge attack have right click priority.
Ways to fix this will be give the priority to the shield, or/and making both jab and charge attack works with left click while there is a shield in the offhand. If the player is stopped or walking, left click will do jab attack, but if the player is running, moving on a mount, falling or flying with elytra, left click will do a charge attack.
Or just adding another key to active shield guarding, like crouching or auto guard when mount from Bedrock Edition.
I know that some of what Iβve said might be considered WorkAsIntended/InvalidFeatureRequest. In that case ignore that. The important fact is that in Bedrock Edition spear + shield works perfectly even on mounts, but in Java Edition the shield is just useless.
Linked issues
is duplicated by 1
Comments 5
Iβll confirm this so Mojang can see, but this is very likely intended. If so, then a hoplite-like loadout is not realistic without modifying the components on the spear, but it would take no great effort to get that working (although an option to charge attack instead of jab attack with left-click would be nice).
I made a post on the Feedback Discord about making left-click always perform the itemβs primary action instead of only being for melee attacks and destroying blocks. This change would have the side effect of addressing this issue, since players could put the shield in their main hand and the spear in their off hand and left-click to block, right-click to jab.
Thank you for your report!
However, this issue is Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History -- Snapshot Version History -- Feature Requests and Suggestions
Quick Links:
π Bug Tracker Guidelines -- π¬ Community Support -- π§ Mojang Support (Technical Issues) -- π§ Microsoft Support (Account Issues) -- π Project Summary -- βοΈ Feedback and Suggestions -- π Game Wiki
Works as intended, mainhand right click functions take priority over offhand ones should both the offhand and mainhand items have right click functions.