Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273407

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21, 1.21.1, 24w38a
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      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.

            Unassigned Unassigned
            LateLag [Mod] LateLag
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: