Mojira Archive
MC-270046

Mace's unique enchant is ineffective or no further effect if the level higher than max level, and causes error to be logged for wind burst

The bug

Using an item with a higher than default level of mace's unique enchant does not work as expected. Wind burst also causes an error to be logged.

To reproduce

  1. Enter the following command in the chat:
    /give @s mace[minecraft:enchantments={levels:{'wind_burst':4}}]
    
    /give @s mace[minecraft:enchantments={levels:{'density':6}}]
    
    /give @s mace[minecraft:enchantments={levels:{'breach':5}}]
    
  2. Hold the mace given by these commands in main hand.
  3. Hit a mob or entity (except players and other entities which crash the game - see MC-270004) while falling from high enough to smash.

Observed result

For wind burst level 4, there is no Wind Burst sound, no gust particles, and you won't be launched upward.
The following is written to log:

[23:06:04] [Server thread/ERROR]: Failed to handle packet agy@3b74fb31, suppressing error
java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
	at czq.c(SourceFile:43) ~[24w13a.jar:?]
	at cza.a(SourceFile:150) ~[24w13a.jar:?]
	at clw.e(SourceFile:1361) ~[24w13a.jar:?]
	at aqn.e(SourceFile:1702) ~[24w13a.jar:?]
	at arm$1.a(SourceFile:1633) ~[24w13a.jar:?]
	at agy$1.a(SourceFile:174) ~[24w13a.jar:?]
	at agy.a(SourceFile:74) ~[24w13a.jar:?]
	at arm.a(SourceFile:1594) ~[24w13a.jar:?]
	at agy.a(SourceFile:61) ~[24w13a.jar:?]
	at agy.a(SourceFile:15) ~[24w13a.jar:?]
	at zh.a(SourceFile:24) ~[24w13a.jar:?]
	at alh.run(SourceFile:18) ~[24w13a.jar:?]
	at bok.d(SourceFile:162) ~[24w13a.jar:?]
	at boo.d(SourceFile:23) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.b(SourceFile:837) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.d(SourceFile:166) ~[24w13a.jar:?]
	at bok.A(SourceFile:136) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.bt(SourceFile:819) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.A(SourceFile:813) ~[24w13a.jar:?]
	at bok.bz(SourceFile:121) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.v_(SourceFile:787) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.y(SourceFile:692) ~[24w13a.jar:?]
	at net.minecraft.server.MinecraftServer.a(SourceFile:272) ~[24w13a.jar:?]
	at java.base/java.lang.Thread.run(Thread.java:833) [?:?]

Density level 6 does the same damage as a normal mace.
For breach levels above level 4, they act just like Breach Level 4.

Fixed

AppleSW

2024-03-28, 12:09 PM

2024-04-16, 02:47 PM

2024-04-16, 02:47 PM

6

3

Confirmed

Important

1216302

Expansion B

Enchantments

breach, density, mace, wind_burst

24w13a, 24w14a

1.20.5 Pre-Release 1