1

Locked chests?

ghostjusr's Avatar ghostjusr7/2/23 7:11 pm
1 emeralds 181 2
7/7/2023 10:58 pm
Wyvernity's Avatar Wyvernity
I know how to use the /setblock command and the /data command to lock chests, but I was wondering if there was a way to use a /give command to give yourself an already locked chest, so when you place it down, it is already locked. I have tried /give @p chest{Lock:”password”} but it doesn’t seem to work. Does anyone know a way you can give yourself pre-locked chests? It would be really helpful.
Posted by ghostjusr's Avatar
ghostjusr
Level 1 : New System
1

Create an account or sign in to comment.

2

Wyvernity
07/07/2023 10:58 pm
Level 76 : Legendary Creator
Wyvernity's Avatar
Its `/give @s minecraft:chest{BlockEntityTag:{Lock:"Password"}}`

You can always refer to MCStacker for this type of stuff.
1
ghostjusr
07/07/2023 9:15 pm
Level 1 : New System
ghostjusr's Avatar
Never mind I fixed it its give @p chest{Lock:password} without the quotes
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome