Make keys and locks use ids instead of storing block position
Minecatr opened this issue ยท 1 comments
Is your feature request related to a problem? Please describe.
Not currently an issue but would make the mod more robust
Describe the solution you'd like
KEYS
Instead of a key being able to only work in one specific position implement a way which when you craft a key it gets an id similar to maps, the first key crafted in a world would be id 1, second, 2, and etc.
LOCKS
Locks would remain mostly the same except they would have an extra piece of data stored in them for the id. By default locks would have the id 0. Locks with id 0 can be reassigned with a key either in crafting or when right clicking the physical lock with a key.
ID HANDLING
Locks and keys would have their ids built into their nbt. Locks id can be reset to id 0 by putting it with nothing else in a crafting slot. The id of a lock or key would be able to be viewed in the subtext of the item (the gray text under the name of an item).
Improvements this feature would add
- Keys that could access multiple doors and chests, this currently exists with keychains but is more annoying to make multiples
- Less cheesable (right now if someone has a key for a certain position it will be permanently be able to access that positio
- Easier to move locked things and relock them
This is a great idea, and one I have tried implementing before. I didn't go through with it then because it causes problems on existing worlds where keys are bound and chests are locked. but it is something I want to do. I will try implementing this in a future update for sure!