If you are playing "Maincraft" on the network, then you are inthe course of what kind of problem is the safety of things. The fact is that any player can come to your chest, open it and, until you see, take all your things. Naturally, nobody will like it, so on most servers it is possible to put a private - a kind of barrier that will not give any other players access to your things. This is the most effective way to protect your property, and at the same time it is absolutely legal - the commands for private are registered for the console by the developers, you do not need to install any additions or modifications to use them. In this article, you will learn how to lock a chest in Minecraft so that only you and only a limited circle of characters can access it, if you so choose.
Installing Private
If you want to learn how to lock a chest inMinecraft, then you need to know the commands for the console. Only with their help you can legally and reliably protect the objects you have from extraneous attacks. So, first of all you will need the cprivate command, which sets the private on the item that you choose. As you can see, this is a very simple process - select the object that you want to use, 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.
However, do not rush to put privat, because youyou can initially expand its impact. The fact is that you may want to see not only you but also two other friends in the chest. To do this, after the command you will need to spell 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.
Withdrawing Private
Privat is not a permanent state, but itwill persist until you do not cancel it. Remember that only the person who installed the private can take it off. 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 a similar impact, but still function in different ways. The cpublic team maintains a private account, but at the same time adds all the players on the server to the list of those who can access the chest. And there is one more command that allows you to remove the private completely - cremove. If you use it, then the chest will return to its original state, and everyone can use it. Use these commands carefully, since you are putting your property at grave risk.
So, you know how to lock the door and chest, as well as some other items in the game, but you can also set a password for them.
Set Password
If it seems to you that privat is not suitablefor you a measure of protection, then you can use the cpassword command, after which you enter a certain combination that you will need to remember. Now that another player wants to open the chest or door, he will be prompted for a password. Actually, now you can use two ways of how to lock a chest for two: install a private and indicate the nickname of your friend after the command or set a password and tell the combination to a friend.
Modification of private
Remember that adding players to private viathe initial command is possible only when you install it. Later you will have to use another cmodify command, after which you need to specify the nicknames of the players you want to give through the space.