mojira.dev
MC-110863

Custom name of double chest is not set for both chests and is based on direction

The bug

When you place two chests with custom names next to each other forming a double chest, both chests will keep their custom name and it is based on the direction which name is used.

Expected behavior

When a chest is placed next to an existing chest, the custom name of the existing chest should be set to the custom name of the placed chest.

Same should apply when using /blockdata.

How to reproduce

Name not overridden

  1. Place two named chests next to each other

    /setblock ~1 ~ ~ chest default replace {CustomName:"chestA"}
    /setblock ~1 ~ ~1 chest default replace {CustomName:"chestB"}
  2. Use /blockdata to show the NBT data of the chests
    → The chests show CustomName:"chestA" and CustomName:"chestB"

Name direction based

  1. Place two named chests next to each other

    /setblock ~1 ~ ~ chest default replace {CustomName:"chestA"}
    /setblock ~1 ~ ~1 chest default replace {CustomName:"chestB"}
  2. Open them
    → The inventory has the name "chestA"

  3. Place two named chests next to each other (other direction)

    /setblock ~1 ~ ~ chest default replace {CustomName:"chestA"}
    /setblock ~1 ~ ~-1 chest default replace {CustomName:"chestB"}
  4. Open them
    → The inventory has the name "chestB"

Linked issues

Comments 1

In 1.13, the name of the leftmost chest is shown

marcono1234

(Unassigned)

Confirmed

CustomName, chest, double-chest

Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a

Minecraft 18w03b

Retrieved