How does locking work?

Chocolatepeanut223
10 Feb 2023, 15:03

I want to lock a chest but it says it needs a key. I already pre made a key but how do I set that key as the key for the chest? (it's a container btw)