There is this mod that when you say a specific word, something happens inside Minecraft (Java Edition). I wanted to know if there is a way for me to change the language of the "specific words" that are in the code. For example: the word “fly” makes the player lose 1 HP, I wanted it to be: “voar” and still lose 1 HP.
The code has a part in python where each word makes something happen, I can change the word and the mod updates itself to the new word I typed. The problem is that if I type a word in Portuguese, it only recognizes it if I speak with an English accent. (first and second image)
on github, which is where the mod's original code is located, there is a folder called "lang" for language, and inside it there is a code with the name: "en_us.json". If I change just these words in English (which are after the ":"), will the accent thing in Python cease to exist? (third image)
Or would I have to go somewhere else to change the language? And would I have to update these words that went from English to Portuguese within the entire code?