mojira.dev
MC-270004

Giving yourself an item with a Wind Burst enchantment level higher than 3, then hitting certain entities crashes the game

The bug

Hitting certain entities (boats, end crystals, fireballs, players, minecarts, shulker bullets and wind charges) with an item enchanted with a Wind Burst level greater than 4 crashes the game.

How to reproduce

  1. Enter the following command in the chat:

    /give @s mace[minecraft:enchantments={levels:{'wind_burst':4}}]
  2. Hit one of the mentioned entities with the mace (it will work with any item)

Linked issues

Attachments

Comments 5

I can't seem to remove the backslash in my description, make sure when running the command to delete it.

Here's a working command

/give @p minecraft:mace[minecraft:enchantments={levels:{"minecraft:wind_burst":4}}]

Following the provided steps, I could not reproduce this

[media]

Correction to my previous comment, I can confirm. Based off the description, it was implied the entity could be anything, though the problem applies to wind charges (and possibly more).

I am going to assume this crash only works on players, I tried it with another entity, no crash, however, the enchantment will not work when it's above level 3.

SuperNate903

(Unassigned)

1215364

Confirmed

Expansion B

Important

Crash, Enchantments

24w13a

1.20.5 Pre-Release 1

Retrieved