mojira.dev
MC-302755

Spears with higher attack speed have broken attack animations

Giving a spear with a higher attack speed via commands causes the jab attack animation to break. With other weapons, the attack animation is always interrupted and started again when attacking before the animation is complete, but this is not always the case with the spear.

Expected Result: The jab attack animation is always restarted should attack speed be high to allow for another attack before the animation is complete.

Observed Result: The jab attack animation is not restarted properly.

Attachments

Comments 5

This happens for all items, not just spears. The game only allows the animation to reset after a certain cooldown has elapsed, and the spear happens to be more noticeable because the animation speed is modified for each tier through a separate component.

To deal with that, you must include the following component to your custom spear:
minecraft:swing_animation={type:stab,duration:6}

This will ensure the duration of the attack animation matches that of the default attack animation.

What? That has nothing to do with this report at all.

If you use a sword to hit a mob multiple times within a short timespan you’ll notice the sword swings very few times compared to the sounds it makes, and it’s the same thing for the spear. It’s how the game has worked for years, spears are particularly noticeable because they actually change the animation to take longer unlike anything else in the game.

It should be Mojang’s decision to decide whether this needs to be adjusted or not to address this issue, please re-open the report.

Thank you for your report!
After consideration, the issue is being closed as 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 HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

SeaOfPixels

(Unassigned)

Confirmed

(Unassigned)

25w41a

Retrieved