Mojira Archive
MC-271468

Game crashes with custom enchantment's "rotated_block_provider"

When using the "rotated_block_provider" block state in the "minecraft:replace_block" effect for an enchantment that is triggered when an arrow hits a block, the game crashes.

 

How to reproduce:

Download the attached data pack and enchant your bow with the "minecraft:crash" enchantment. Then shoot an arrow at any block that doesn't have an axis.

 

Crash Report:
The game crashed whilst ticking entity
Error: java.lang.IllegalArgumentException: Cannot set property dtf

{name=axis, clazz=class jf$a, values=[x, y, z]}

as it does not exist in Block{minecraft:stone}

Fixed

SilicatYT

[Mojang] Gegy

2024-05-03, 06:49 PM

2024-05-14, 01:49 PM

2024-05-14, 01:49 PM

2

2

Confirmed

Important

Platform

Crash, Enchantments

24w18a

24w20a