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 dataOpen the barrel and close it
✔ The texture is updatedCopy 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.
Fixed in 24w45a