Hello,
Version 1.13 is fast approaching. As you probably know, all data values are being removed from the game. With this, the deprecated methods in the Bukkit API allowing ItemStack manipulation with these values are being removed. That will render the items.csv file unusable since it is entirely based on the legacy values. One of my plugins relies on this file for alias referencing, and therefore I've been working on a script to convert the values into JSON format.
Below is an example conversion of a relatively simple item, charcoal.
charcoal,263,1
ccoal,263,1
{
"spigot": {
"material": "COAL",
"data": {
"type": "CHARCOAL",
"class": "org.bukkit.material.Coal"
}
},
"legacy": {
"id": 263,
"data": 1
},
"aliases": [
"charcoal",
"ccoal"
]
}
An example of a more involved item, Healing II Potion.
healingleveliipotion,373,8229
healleveliipotion,373,8229
healinglevel2potion,373,8229
heallevel2potion,373,8229
healingiipotion,373,8229
healiipotion,373,8229
healingleveliipot,373,8229
healleveliipot,373,8229
healinglevel2pot,373,8229
heallevel2pot,373,8229
healingiipot,373,8229
healiipot,373,8229
h2pot,373,8229
{
"spigot": {
"material": "POTION",
"data": {
"type": "INSTANT_HEAL",
"extended": false,
"upgraded": true,
"class": "org.bukkit.inventory.meta.PotionMeta"
}
},
"legacy": {
"id": 373,
"data": 8229
},
"aliases": [
"healingleveliipotion",
"healleveliipotion",
"healinglevel2potion",
"heallevel2potion",
"healingiipotion",
"healiipotion",
"healingleveliipot",
"healleveliipot",
"healinglevel2pot",
"heallevel2pot",
"healingiipot",
"healiipot",
"h2pot"
]
}
The goal of this format is to enable item alias storage without depending on legacy values. I've explored ways to have the data version tagged, however each solution was either complicated to parse or messy in general. Unless anyone has any suggestions, this file should probably be version dependent.
Please let me know what you think of this format, and if it should be changed in any way. I have a fully complete file generated using my conversion plugin. I'll upload that to github and link that soon.
Conversion Util Repository
This is a continuation of #1448
Hello,
Version 1.13 is fast approaching. As you probably know, all data values are being removed from the game. With this, the deprecated methods in the Bukkit API allowing ItemStack manipulation with these values are being removed. That will render the items.csv file unusable since it is entirely based on the legacy values. One of my plugins relies on this file for alias referencing, and therefore I've been working on a script to convert the values into JSON format.
Below is an example conversion of a relatively simple item, charcoal.
{ "spigot": { "material": "COAL", "data": { "type": "CHARCOAL", "class": "org.bukkit.material.Coal" } }, "legacy": { "id": 263, "data": 1 }, "aliases": [ "charcoal", "ccoal" ] }An example of a more involved item, Healing II Potion.
{ "spigot": { "material": "POTION", "data": { "type": "INSTANT_HEAL", "extended": false, "upgraded": true, "class": "org.bukkit.inventory.meta.PotionMeta" } }, "legacy": { "id": 373, "data": 8229 }, "aliases": [ "healingleveliipotion", "healleveliipotion", "healinglevel2potion", "heallevel2potion", "healingiipotion", "healiipotion", "healingleveliipot", "healleveliipot", "healinglevel2pot", "heallevel2pot", "healingiipot", "healiipot", "h2pot" ] }The goal of this format is to enable item alias storage without depending on legacy values. I've explored ways to have the data version tagged, however each solution was either complicated to parse or messy in general. Unless anyone has any suggestions, this file should probably be version dependent.
Please let me know what you think of this format, and if it should be changed in any way. I have a fully complete file generated using my conversion plugin.
I'll upload that to github and link that soon.Conversion Util Repository
This is a continuation of #1448