Persistent Data
RockinChaos opened this issue ยท 1 comments
Describe The Feature
Forwarded from discord;
just had an idea regarding placeable ItemJoin items while looking at the latest bug report. What do you think about the ability to retain ItemJoin data of placeable blocks? When you mine them the drop would convert to the ItemJoin item in question. It would work by adding a new table to the database. This table would save at least four things. The coordinates where the block was placed, the world in which it was placed, the type of block and ItemJoin ID. It would then trigger when the item at the location was placed (Add data to the table) or destroyed. (Replace the drop and remove the data from the table, optionally maybe check if a user used the right tool to break it) The according itemflag could be called retainable
. Let me know what you think!
Expected Solution
It may be possible to forego using the database and simply use Minecraft's persistent data which was added in 1.14. Though this would limit the usage of this itemflag to 1.14+
Describe Alternatives Considered
N/A
Additional Context
I don't have intention of working on this myself unless I get a lot of free time. If anyone is interested feel free to work on this and submit a pull request. I will look it over to fix any minor issues and accept it.
Checklist
- I have read the wiki to make sure my request has not already been implemented.
- I ticked all of these boxes without actually reading them.
- I have checked that my feature request is unique and another request does not exist.