Hey, recently I wanted to make custom item bags that are based on player heads. these items can then be crafted into something else for sale and transport, as well as being placeable and only holds 8 items that are exchanged via crafting recipe. simple enough I thought. Wrong, but I digress. I had to go with storing the coordinates of each block and when player heads with a list of specific skull textures break it it deletes the item drop via loop in 3 radius of the player. My issue is storage, how do I efficiently store these values. I know json is the most effect file type but I am to lazy to poke that bear. Herein my question lies, I am currently using a yml file from skript-yml that saves the values as storage on specific timed events and stop. whenever the world saves I check all these specific blocks. there are about 15 types of them and remove all the ones that no longer exist. When the game stops i save all these values to the yml file, and get them again right after the server starts. they are stored in skript variables at this point and the files are just a backup and for easy editing. I have no clue how inefficient this is so my options are
Thanks in advance and sorry for the long post
- Do the same thing but with MYSQL database
- Do the same but poke the bear and do it in Json
- Do the opposite and get the locations from the yml file directly on block break and store it to the file directly on block place
- Do the opposite '' '' '' but with MYSQL database
- do the opposite '' '' '' but with Json
Thanks in advance and sorry for the long post