How can I make it so if you right click with a rabbit hide on a birch door to lock the door and open a gui where there are 9 light gray stained glass like
1 2 3
4 5 6
7 8 9
And you have to choose a code up to 4 numbers, and then if another player right clicks the door, he has to press the numbers that the owner of the door selected.
[doublepost=1621886498,1621842684][/doublepost]Someone told me that I could make a codelock system like that but idk how to do those things if someone could help me:
Maybe make the player shift-right-click (as if placing a block) and store the location of the block to a temporary variable, make the player run a command to "lock" the door (and input a phrase - don't make it automatically assign a code, unless you randomly generate one previously), and when a player right-clicks like normal to open said door you have them input a phrase into chat to unlock and enter.
1 2 3
4 5 6
7 8 9
And you have to choose a code up to 4 numbers, and then if another player right clicks the door, he has to press the numbers that the owner of the door selected.
[doublepost=1621886498,1621842684][/doublepost]Someone told me that I could make a codelock system like that but idk how to do those things if someone could help me:
Maybe make the player shift-right-click (as if placing a block) and store the location of the block to a temporary variable, make the player run a command to "lock" the door (and input a phrase - don't make it automatically assign a code, unless you randomly generate one previously), and when a player right-clicks like normal to open said door you have them input a phrase into chat to unlock and enter.