mojira.dev
MC-302838

Extreme TPS lag when using high Lunge levels with Unbreaking

Putting high levels of Lunge on a spear alongside Unbreaking and then performing the jab attack/lunge effect causes extreme TPS lag when the level of Lunge exceeds about 14 or so.

Steps to Reproduce:

  • Use /give to obtain any type of spear with a high Lunge enchantment level (14-15 perhaps), as well as any Unbreaking level

    • Example command:

      /give @p netherite_spear[enchantments={lunge:15,unbreaking:1}]
  • Left click to trigger the jab attack of the spear

  • This will cause the server to freeze for a while. If not, try increasing the Lunge level.

  • After freezing for several seconds, the lunge still occurs as expected.

Note: There seems to be no lag up until ~Lunge 12, at which point it is barely noticeable, then at 13 it gets slightly worse, and >14 causes extreme lag.

  • These numbers may be dependent on hardware

Expected Result:

The jab should trigger instantaneously and without lag, as it does with lower lunge levels/without unbreaking.

Actual Result:

The server lags excessively after the jab is triggered (note: no client FPS lag), causing a freeze in TPS (visible in F3+2 profiler) for many seconds

Linked issues

Attachments

Comments 0

No comments.

crystaltine

(Unassigned)

1498241

Plausible

Expansion A

Important

Enchantments, Items

25w41a

25w42a

Retrieved