This mod for Minecraft enables players to translate chat messages effortlessly into their preferred language with just one click. Utilizing the Google Apps Script (GAS) API for the translation process, it functions seamlessly on the Fabric platform, compatible with Minecraft Version 1.21.11.
Chat Translation Mod Overview
This mod provides a convenient way to communicate with players from different linguistic backgrounds by translating chat messages based on user-defined language settings. Thanks to the integration with the Google Apps Script, the setup is straightforward and user-friendly.
For users seeking a simpler configuration, you can easily copy and paste the link below into the API URL (config/translator-url.txt):
https://script.google.com/macros/s/AKfycbyoiiASzJr_SNFV9Wn5388f03C8jKuz6IQMrRVt-AejbhKaDjO0BXxvQw_zp2rkv05g-w/exec
Steps to Get Started
Follow these instructions to enable chat translations:
Step 1
Log into your Google account and navigate to https://script.google.com/.
Step 2
Create a new project. You can title it as per your choice, like “Minecraft Translation API”.
Step 3
Remove all default code in the project and insert the following script:
function doGet(e) {
var {text, target = 'ja', source = ''} = e.parameter;
var translatedText = LanguageApp.translate(text, source, target);
return ContentService.createTextOutput(translatedText).setMimeType(ContentService.MimeType.TEXT);
}
Step 4
Click the “Deploy” button and opt for “New deployment”. Designate the deployment type as “Web app”. You can provide any description you like, set “Execute as” to “Me”, and “Who has access” to “Anyone”, then proceed to click “Deploy”.
Step 5
Copy the generated Web App URL (formatted like https://script.google.com/macros/s/.../exec) to finish this step. Remember to keep this URL private!
Step 6
Place the downloaded .jar file inside the mods directory.
Step 7
Start Minecraft once and then close it. This action will create the necessary configuration files in your config folder.
Step 8
Open translator-url.txt, paste the translation API URL that you prepared earlier, and save your changes.
Step 9
Next, navigate to translator-lang.txt to set your desired target language code (for example, en for English or ja for Japanese). The default language setting is Japanese(ja).
- If you have any inquiries, requests for features, or if you encounter any problems, feel free to drop me a direct message on Discord.
- Discord Username: @nuyuchi
