mojira.dev
MC-313484

The game crashes when a `randomized_int` block state provider samples an out of range integer value

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

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

BugTracker - BugTX

(Unassigned)

Confirmed

Crash

26.3, 26.4 Snapshot 10

Retrieved