Minecraft-Console-Client icon indicating copy to clipboard operation
Minecraft-Console-Client copied to clipboard

[Idea] Automatically add translations of forge mods

Open oldkingOK opened this issue 1 year ago • 0 comments

Prerequisites

Console Client Version

Latest

Describe your problem

When forge mods translation is missing, the following message is displayed:

oldkingOK has made the advancement [[farmersdelight.advancement.place_feast] ]

Suggest a possible solution

Forge Mod files are zip archives with a .jar extension, using FarmersDelight-1.20.1-1.2.3.jar as an example:

In _.jar/META_INF/mods.toml, we can get the id of the mod, such as modId = "farmersdelight" Then the translation file is under _.jar/asset/{modId}/lang/ and the files naming rules is LocaleCode compliant, such as en_us.json zh_cn.json

I think one of the solutions is to manually add the forge mods to the local folder, and then after connecting to the server and receiving the list of mods, load the corresponding translation files.

Attach screenshot here (If applicable)

No response

Minecraft Version

1.20.1 Forge 47.2.19

Device

Desktop

Operating System

Linux

oldkingOK avatar Jan 31 '24 04:01 oldkingOK