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?
Invalid, feature request.