When a minecraft:randomized_int block state provider specifies an integer property that exists on the source block, but samples a value outside that property's allowed range, the game crashes.
Steps to reproduce
Create a new creative world with the attached data pack enabled.
Run the command:
/give @s minecraft:stick[minecraft:block_transformer="test:crash"]Right-click any block while holding the stick.
Observed results:
The game immediately crashes.
Expected results:
The game does not crash when a minecraft:randomized_int block state provider samples an integer outside the target property's allowed range.
Additional note: Relates to MC-271718
Thank you for helping us improve Minecraft! We saved your files: