MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[Idea] Automatically add translations of forge mods #2658

Open oldkingOK opened 10 months ago

oldkingOK commented 10 months ago

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