mojira.dev
MC-302886

Spear with high Lunge and Unbreaking enchantments causes lag

Using the Lunge enchantment at level 255 with Unbreaking on a spear causes the game to calculate the damage to apply to the spear. But because the damage for Lunge 255 is 6.7*10^153 (according to slicedslime via Twitter), the calculation takes a long time thus lagging the game.

In the attached video I used this command to get the spear (it lags the game even with Unbreaking of a lower level)

give @s minecraft:copper_spear[minecraft:enchantments={"lunge":255,"unbreaking":255}]

Environment

  • Windows 11

  • Singleplayer

  • Java:
    openjdk 21.0.7 2025-04-15 LTS
    OpenJDK Runtime Environment Temurin-21.0.7+6 (build 21.0.7+6-LTS)
    OpenJDK 64-Bit Server VM Temurin-21.0.7+6 (build 21.0.7+6-LTS, mixed mode, sharing)

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MC-302838, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

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

Yoav TC

(Unassigned)

Unconfirmed

(Unassigned)

25w41a

Retrieved