How to lock a chest in Minecraft and how to make it public

If you play Minecraft over the network, then you are aware of the problem with the safety of things. The fact is that any player can come to your chest, open it and, until you see it, pick up all your things. Naturally, no one will like it, so on most servers there is the opportunity to put privat - a kind of barrier that will not give any other players access to your things. This is the most effective way to protect your own property, and at the same time it is absolutely legal - the commands for the privat are registered for the console by the developers, you do not need to install any add-ons or modifications to use them. In this article, you will learn how to lock a chest in Minecraft so that only you can access it and a limited circle of characters if you want to.

Private installation

If you want to learn how to lock a chest in Minecraft, then you need knowledge of the commands for the console. Only with their help you can legally and reliably protect your items from extraneous attacks. So, first of all, you need the cprivate command, which sets the privat to the item that you choose. As you can see, this is a very simple process - select the item that you want to lock, open the console, enter the command - and you're done. Now only you have access to your chest - any other player will receive a message stating that he does not have access to this item and its contents.

how to lock a chest in minecraft

However, do not rush to set a private one, because you can initially expand its impact. The fact is that you may want so that not only you, but also two of your friends can look into the chest. To do this, after the command, you will need to register their nicknames with a space. And only then activate the team. Then they will be able to use the chest on a par with you - only they will not be able to apply commands to it. Now you know how to lock a chest in Minecraft, but you need to figure out a few more important points.

Privat Removal

Private is not a permanent state, but it will remain until you cancel it yourself. Remember that only the person who set up the privat can remove it. Therefore, if you learned how to lock a chest in Minecraft, then you should learn how to undo this action. There are two teams that have similar effects, but still function differently. The cpublic team keeps it private, but it adds all the players on the server to the list of those who can access the chest. And there is another team that allows you to remove privat completely - cremove. If you use it, the chest will return to its original state, and everyone will be able to use it. Use these commands carefully as you put your property at serious risk.

how to lock a door and a chest

So, you know how to lock the door and the chest, as well as some other items in the game, but you can also set a password for them.

Password setting

how to lock a chest for two

If it seems to you that privat is not a suitable protection measure for you, then you can use the cpassword command, after which you can enter a certain combination that you will need to remember. Now, when another player wants to open a chest or door, he will be asked to enter a password. Actually, now you can use two ways to lock the chest for two: set a private one and indicate your friend’s nickname after the command, or set a password and tell the combination to a friend.

Private modification

Remember that you can add players to the privat through the initial team only when you install it. Later you will have to use another team - cmodify, after which you need to specify the nicknames of the players to whom you want to give access.

Source: https://habr.com/ru/post/E30906/


All Articles