Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meatyite/minecraftversiontranslator
a python module used to create a translation of a minecraft version by creating your own string alteration function
https://github.com/meatyite/minecraftversiontranslator
minecraft minecraft-resourcepack minecraft-texturepack pypi python python3
Last synced: about 2 months ago
JSON representation
a python module used to create a translation of a minecraft version by creating your own string alteration function
- Host: GitHub
- URL: https://github.com/meatyite/minecraftversiontranslator
- Owner: meatyite
- License: wtfpl
- Created: 2019-08-16T14:57:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-22T11:08:22.000Z (over 5 years ago)
- Last Synced: 2024-10-08T08:53:08.368Z (3 months ago)
- Topics: minecraft, minecraft-resourcepack, minecraft-texturepack, pypi, python, python3
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MinecraftVersionTranslator
A python module used to create a translation of a minecraft version by creating your own string alteration function.
## Instructions & Examples
First, you'll need to go to your .minecraft folder (google it) and inside it click on the folder called `versions`.
Then you'll need to find the version you want to translate,
and copy it's JAR to your project's folder and extract it using 7zip or winrar with the "extract to (folder name)" option.
Now here comes the fun part, translating minecraft.
Here's an example of a translator function, which will make every text in the game like the "uwu" meme.
```python3
from minecraftversiontranslator import MinecraftVersionTranslatordef uwuify_string(toUWU):
return toUWU.lower().replace('r', 'w').replace('l', 'w').replace('n', 'ny')if __name__ == '__main__':
mc_translator = MinecraftVersionTranslator(
extracted_version_folder_name='1.14.4',
translate_function=uwuify_string,
language_file_to_translate="en_us",
new_language_file_name="en_uwu",
language_name="uwu English",
language_description="uwu English",
language_region="US",
language_bidirectional=False
)
mc_translator.create_resource_pack()```
Here are some ideas to what kind of translations you could do with this:
- Translating text to different languages and back using google translate's (or similar) API to make the text very broken
- Find a web tool that translates text into some form of dialect, reverse engineer it's API or scrape it then use in the translator (for example, what I did with [python-whoohoo](https://github.com/sl4vkek/python-whoohoo))
- Translate english into [Anglish](https://en.wikipedia.org/wiki/List_of_Germanic_and_Latinate_equivalents_in_English)
- You could do this with pretty much any language, I'm not restricting you to only english. There's lots of stuff you could do in various languages.