GUI changing with different language

Started by VR_D0GE on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI changing with different language

Hello, i have a mod that is based around books, and i want to be able to have them in different languages. I wanted to ask how i could detect the user’s language and display the appropriate gui for there language. I am not really experienced with McCreatee but i will give what ever a shot.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the text category in the…
Wed, 01/08/2025 - 10:22

In the text category in the procedure, with the Get localized text for key [translation.key.name] block, you can get the text based on the player's game language.

Then, when you are in the workspace, by clicking on Localization in the menu on the left side of the page, you can add the key of your localized text and then write the text for different languages.

Then in the gui, take the text from the procedure.