mojira.dev
MC-273407

Block entity items with custom block states keep them as components when placed

Steps to Reproduce:

  • Use the following command:

    /give @s minecraft:barrel[minecraft:block_state={open:"true"}]
  • Place down the barrel anywhere in the world
    It will be open, as specified in the item data

  • Open the barrel and close it
    The texture is updated

  • Copy the barrel by using CTRL + Pick block

  • Place down your newly acquired barrel.
    The barrel is open

Observed Results:
The block state specified in the /give command is stored permanently on that block entity, even if that state changes. This is inconsistent with block entities that are placed through /setblock and /fill, and is new behavior that didn't occur prior to the introduction of item stack components.

Expected Results:
The minecraft:block_state component doesn't get stored in the block entity data when placed in the world.

Comments 1

[Mod] LateLag

(Unassigned)

Confirmed

Platform

Normal

Commands

1.21, 1.21.1, 24w38a

24w45a

Retrieved