#How can i change the language in the Minecraft: Speech Recognition Mod (java)

1 messages · Page 1 of 1 (latest)

civic hull
#

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?

stoic patioBOT
#

<@&987246964494204979> please have a look, thanks.

civic hull
paper monolith
#

The lang/en_us.json file is a minecraft translation file. It's used to translate pieces of text in game. It's completely unrelated to the speech recognition system

#

Seems like you'd need to add a language pack to the python script, but none is available for portuguese.

#

You can find more info here:

#

You might actually be able to build a portuguese language pack, but I'm not sure how complicated it wouldbe