mojira.dev
MC-310924

The game crashes when a `rotated_block_provider` block state provider is applied with a vertical direction to a block that can only face horizontally

When rotated_block_provider with vertical direction is applied to property facing that is HORIZONTAL_FACING internally (e.g. Door), the game crashes with java.lang.IllegalArgumentException.

Additionally, this can be caused without specifying direction because RotatedBlockProviderchooses direction randomly without validation using Direction.getRandom().

How to reproduce

  • Execute /give @s stick[minecraft:block_transformer=[{block_state_provider: {type: rotated_block_provider, direction: up, state: {type: simple_state_provider, state: oak_door}}}]] and interact any block with given stick.

  • Execute /give @s stick[minecraft:block_transformer=[{block_state_provider: {type: rotated_block_provider, state: {type: simple_state_provider, state: oak_door}}}]] and interact any block with give stick several times, until the game chooses vertical direction and crash.

Attachments

Comments 0

No comments.

Mueller857

etanaratsastaja

Confirmed

Platform HC

Important

Crash

26.3 Snapshot 7

26.3 Snapshot 9

Retrieved