mojira.dev
MC-101447

No Lock data tag on Chest / Hopper minecarts

The Chest and Hopper minecarts don't have a Lock data tag, like in their solid homologue.

(I'm opening the minecart in the 2nd screenshot without the redstone named "TestKey".)

Steps to Reproduce:

  • Run the following commands:

/summon minecraft:chest_minecart ~ ~ ~ {Lock:"Test"}
/summon minecraft:hopper_minecart ~ ~ ~ {Lock:"Test"}

→ ❌ Notice how you are able to open both the hopper and chest minecart and that the "Lock" data tag doesn't exist for these entities.

Attachments

Comments 20

@redstonehelper I can't make this as a feature request in JIRA, I tried before sending this ticket.
Could you edit it please ?

This bug tracker doesn't track feature suggestions, go here.

Interestingly minecarts with a chest and minecarts with a hopper extend net.minecraft.entity.item.EntityMinecartContainer which implements net.minecraft.world.ILockableContainer. The methods to set or get the lock do nothing however and the Lock tag is neither written nor read, which on purpose. It is still kind of strange that the class then implements the ILockableContainer interface.

Can we get offical feedback that this is WAI?

10 more comments

Can confirm in 21w14a.

Can confirm in 21w16a.

Can confirm in 1.17.1.

This is a feature request

thomasnet

(Unassigned)

Confirmed

(Unassigned)

chest_minecart, hopper_minecart

Minecraft 1.9.3 Pre-Release 2, Minecraft 1.11.2, Minecraft 17w06a, 1.14.4, 19w41a, ..., 21w11a, 21w14a, 21w16a, 1.17, 1.17.1

Retrieved