minecraft-data
minecraft-data copied to clipboard
Other languages
https://github.com/PrismarineJS/mineflayer/pull/529#issuecomment-311218475
http://minecraft.gamepedia.com/Language
https://github.com/PrismarineJS/minecraft-data/issues/184
https://github.com/PrismarineJS/minecraft-data/pull/183
Not sure where the other languages are downloaded from. They are not in the client jar nor the server one.
we can also just use the files in .minecraft/assets/objects using the asset index loading plugin.
11:29
<rom1504>
where are the language file downloaded from ? (for other languages than en_us) 11:49<kashike>
rom1504: same place all the other client assets (sounds, etc) come from. http://wiki.vg/Game_files#Assets 11:49<MiniDigger>
https://s3.amazonaws.com/Minecraft.Download/indexes/1.12.json for index, then you can use the hash the generate the url 11:49<MiniDigger>
basically ^^^^ 11:50<MiniDigger>
this is de_DE.lang for 1.12 for example http://resources.download.minecraft.net/11/11131a85e946ea9c7b703ff26ff29de18ba8bbb0 12:10<+Dinnerbone>
(But please don't use the s3 url for anything) 12:13<rom1504>
Ok, thanks
12:39
<ScruffyRules>
(Dinnerbone, why not? justcurious) 12:48<MiniDigger>
Is there another way to get the index other than via s3? That's the only one on wiki.vg 12:58<+Dinnerbone>
You can find all the versions here: https://launchermeta.mojang.com/mc/game/version_manifest.json then follow the url to the version you want, for example, 1.12 is https://launchermeta.mojang.com/mc/game/71579a8bd04a542218613d8015aaf386b84c6ba1/1.12.json - then it has the url for the asset index or anything else you need. 13:01<MiniDigger>
oh, didn't see the asset index in version file 13:01<+Dinnerbone>
There's no hardcoded urls other than the manifest now 13:07<+Dinnerbone>
I think all the s3 urls should be removed from the wiki 13:07<+Dinnerbone>
We won't continue supporting s3 forever. No plans to shut it down right now, but, one day! 13:08<MiniDigger>
currently adujusting some stuff 13:08<+Dinnerbone>
Plus the new route is much faster, updates quicker, easier to cache
should we host them our self then or do we have to use the files download by the client?
I think we should make a tool to download automatically everything we need. (that can go in https://github.com/rom1504/node-minecraft-wrap )
Then we can choose to use this tool to either update a github repo to store these files (mc assets or mc data), or we can use the tool directly alongside mineflayer to get the file (in that case the files could either be downloaded at runtime or as a postinstall npm step)
we can even use it as a fallback if the files arent found in the minecraft directory we can download them for example.
it's now possible to use the new launcher download in minecraft-wrap to download the lang assets. I'll put a script somewhere to do that. Let's track that here. (see https://github.com/rom1504/node-minecraft-wrap/pull/13 )