LazrProductions / cuffed

GNU General Public License v3.0
2 stars 3 forks source link

Make keys and locks use ids instead of storing block position #14

Open Minecatr opened 2 months ago

Minecatr commented 2 months ago

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

LazrProductions commented 2 months ago

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!