1

Locked chests?

ghostjusr 7/2/23 7:11 pm
317
7/7/2023 10:58 pm
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
Level 1 : New System
1

  Have something to say?

JoinSign in

2

Wyvernity
07/07/2023 10:58 pm
He/Him • Level 79 : Legendary Sus Crewmate
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
Never mind I fixed it its give @p chest{Lock:password} without the quotes
1

Welcome