Hey I figured out how to make a basic key/lock system! Sort of. It's just a command block that detects whether you're standing next to a door that's "locked" and then opens it if you're holding a certain item. All hail me, the master of command blocks.