mojira.dev
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}

Linked issues

Attachments

Comments 1

I believe this also affects 1.20.6, although it requires custom worldgen.

SilicatYT

gegy

Confirmed

Platform

Important

Crash, Enchantments

24w18a

24w20a

Retrieved