mojira.dev
MC-309692

Certain `block_transformer` component configurations prevent items from stacking

The bug

Running the following command multiple times produces diamonds that can’t stack, even though they have the same data.

/give @p diamond[block_transformer=[{block_state_provider:{type:"rule_based_state_provider",rules:[{if_true:{type:"matching_blocks",blocks:"oak_log"},then:{type:"simple_state_provider",state:{id:"stripped_oak_log"}}}]}}]]

I wasn’t able to narrow it down fully, but it seems to be related to rule_based_state_provider, since using just a simple_state_provider does not cause this issue.

Comments 1

Additionally, amending this command to increase the given stack size will allow for the given items to be separated and stacked properly, but not to stack with any consequently or previously given items despite using the same item components.

tryashtar

(Unassigned)

Confirmed

Platform EC

Low

Items

26.3 Snapshot 3

26.3 Snapshot 10

Retrieved