-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.12 to 1.13 conversion data? #216
Comments
You can try to do the mapping on the name. |
I tried that already, but as you said, it works only for part of the items. |
Ah you meant something provided by Mojang ? Definitely not. But anyway, it's not possible to make such a table because there are many new items and some new blocks. Even old blocks are mapped to several 1.13 blocks. What problem are you trying to solve ? |
How does minecraft load a chest from a 1.12 map and convert it to 1.13? There must be an internal table that translates the old values to the new ones? I running a minecraft server where we allow people to trade goods via MySQL-driven shop system. Since the shop records items in the database, I need to manually upgrade all the item names from one to the next version. I was hoping to be able to automate it. I can automate a lot already with the historic names, but not everything. |
Ah you're right maybe there's something in the part of Minecraft that read the map files. I'll try looking into that. |
you can use the 1.12 data and 1.13 data to create a script file to update mysql data,change the item id form 1.12 to 1.13,but the 1.13.1 add 5 new item and minecraft-data not update. |
@lintx how can I create a script that knows that |
you can create a python/node.js/php/other file to change the mysql data.
you can read the json in node.js to data:
you must ergodic mysql all row and change success |
But where do you get this info from: |
Well, for one, I don't see the json in there that links But much more in general terms, if the HTML in the wiki was the answer to all block/item/biome questions, then this whole github project would be redundant. From what I know, this whole project is made so that people do NOT have to do the wiki->JSON conversion themselves. For what it's worth, I already wrote my conversion code for 95% of the stuff anyhow, but there were still a bunch of them leftover that I had to do manually. I was hoping that manual work would not be needed as the MC code must have this table, with ALL details somewhere already existing.And that there was an easy/automated way to get that conversion table out of the minecraft code (or even from the wiki for that matter) and include the resulting conversion table as JSON in this project. Last but not least, that page you linked to is only valid for the 12->13 upgrade but not for future releases. If we would know where in the code the map upgrade happens, we could do that conversion also for future version upgrades if item/block renaming happens but not in a scale that warrants it's own wiki page. |
I agree it would be nice to have that conversion data.
If someone has time to do it, feel free !
…On Mon, Nov 12, 2018, 05:34 Uncovery ***@***.***> wrote:
Well, for one, I don't see the json in there that links stained_glass:1
to orange_stained_glass.
But much more in general terms, if the HTML in the wiki was the answer to
all block/item/biome questions, then this whole github project would be
redundant. From what I know, this whole project is made so that people do
NOT have to do the wiki->JSON conversion themselves.
For what it's worth, I already wrote my conversion code for 95% of the
stuff anyhow, but there were still a bunch of them leftover that I had to
do manually. I was hoping that manual work would not be needed as the MC
code must have this table, with ALL details somewhere already existing.And
that there was an easy/automated way to get that conversion table out of
the minecraft code (or even from the wiki for that matter) and include the
resulting conversion table as JSON in this project.
Last but not least, that page you linked to is only valid for the 12->13
upgrade but not for future releases. If we would know where in the code the
map upgrade happens, we could do that conversion also for future version
upgrades if item/block renaming happens but not in a scale that warrants
it's own wiki page.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#216 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACPN_qWcBuz8ED2F_wNhD4vsYh7bkpqQks5uuPpvgaJpZM4YRxNA>
.
|
Do you have any idea where the conversion in the mineraft code takes place? Maybe I can get the rest done once I know where to look... |
I would guess it's in the part of Minecraft that read the map (anvil) files. |
I found where it is but it's a part of the compiled code. So I would think this issue is not solvable. Much of the code's functions names are abstracted as well (a,b,c etc) |
Much of Minecraft Data is extracted using the burger tool that is based on decompiling the minecraft code. Where is it exactly ? |
Of course I might be wrong, but from the class names it should most likely be net.minecraft.server.v1.13_R2.ChunkConverrter.Java (as found in spigot, not spigot-api) |
If this is still relevant I can look into making some tables from reading the code manually. That way they exist for future use. |
Here's a useful file which someone could parse and generate mappings with: https://bugs.mojang.com/secure/attachment/151784/the_flattening.txt |
we have this data there https://github.com/PrismarineJS/prismarine-schematic/blob/master/lib/legacy.json |
Is it possible to extract a json that indicates how block/item data from 1.12 maps is converted to 1.13 maps?
The text was updated successfully, but these errors were encountered: