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}
I believe this also affects 1.20.6, although it requires custom worldgen.