mojira.dev
MC-44718

Double chests unlocking

The bug

When a double chest is placed and both sides of the chest have a Lock tag, it stays locked. When one side is unlocked, the entire chest is still locked.

How to reproduce

  1. Place down a double chest.

  2. Run this command on both chests:

    /data merge block x y z {Lock:"Test"}
  3. Try to open the chest (should be locked)

  4. Run this command on ONE side of the double chest:

    /data merge block x y z {Lock:""}
  5. Try to open the chest again (stays locked)

Linked issues

Attachments

Comments 19

A double chest is two tile entities next to each other, this needs some big-time programming on Mojang's part. So, not exactly a bug, but more a design flaw...

Clear the lock on both sides, then. Tile entities can only be in one block, not two.

@Mary Mary The Problem with your solution is that when one Chest Tile Entity is locked next to another one, the other one also becomes locked. So you unlock one and the next tick it is locked again.

Actually, double chests are kind of an ugly hack, and it is definitely possible for multiple blocks to use the same tile entity.

@Jar_ the lock has been introduced in the 1.8 snapshots, not 1.7

9 more comments

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 21w07a.

user-2a4c8

(Unassigned)

Confirmed

Block states

blockdata, chest, double, lock

Minecraft 14w02c, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 18w03b, Minecraft 1.13.1, ..., 20w51a, 21w03a, 21w05b, 21w06a, 21w07a

Retrieved