mojira.dev
MC-44632

Lock NBT tag does not prevent any hopper mechanics

When I decided to test some locked chests, I noticed that a hopper both going in and taking items from a chest with the

{Lock:"My lock"}

tag, don't get blocked by the lock. This removes much useful functionality since hoppers could easily take and steal items from these locked chests.

What I expected to see:
No items being transferred, possibly items would be transferred into hoppers that shared the same {Lock:"My Lock"}.

What I saw:
Items were transfered and not blocked in any way, any hopper could change the container.

Steps to reproduce:
Take a container that can be locked, use

/setblock ~ ~ ~ chest 0 replace {Lock:"My Lock"}

Put a hopper above and underneath the chest.

Put items in the top hopper

Watch them flow into the bottom hopper, passing through the chest just fine.

Comments 4

Is this still a concern in the current Minecraft version 14w10c / Launcher version 1.3.10 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

It still happens in 14w10c.

The only purpose of the Lock tag on blocks with an inventory is to prevent player interaction with them.

"Removes much useful functionality" - I actually find this extremely useful for my datapack.

Starbuck Johnson

michael

Unconfirmed

Minecraft 14w02c, Minecraft 14w10c

Retrieved