https://github.com/the-fireplace/mc-en-ud-generator
Turns English lang files for Minecraft mods into en_UD.lang (Upside Down joke language that comes with the game)
https://github.com/the-fireplace/mc-en-ud-generator
gradle-plugin kotlin minecraft silly
Last synced: 8 months ago
JSON representation
Turns English lang files for Minecraft mods into en_UD.lang (Upside Down joke language that comes with the game)
- Host: GitHub
- URL: https://github.com/the-fireplace/mc-en-ud-generator
- Owner: The-Fireplace
- License: mpl-2.0
- Created: 2018-02-14T05:18:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T22:17:14.000Z (almost 8 years ago)
- Last Synced: 2025-02-03T08:51:07.377Z (over 1 year ago)
- Topics: gradle-plugin, kotlin, minecraft, silly
- Language: Kotlin
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
To add this to your gradle project:
Between `buildscript{...}` and `apply plugin: 'net.minecraftforge.gradle.forge'`, insert the following:
`plugins{
id "thefireplace.en2ud" version "1.0.2"
}`
Anywhere after the plugins are applied, add the following:
`en2ud {
modid = "YOUR_MODID_GOES_HERE"
}`
This section tells it which folder to look for the lang files in, assuming the default directory structure of `src/main/resources/assets/YOUR_MODID_GOES_HERE/lang`
Inside `en2ud{...}`, there are also several optional parameters you may set:
`customRegex` can be set to a regex String that should not be turned upside down. If your mod uses something in the lang files like @VERSION@, or @1, @2, @3, etc, you should set this to regex that covers that to prevent it from being turned backwards and upside down.
`copyInvalidLines` can be set to a boolean that specifies if you want to copy invalid lines to the generated file. If you write comments saying what each section is, you might want to set this to true. Default setting is false.
`debug` can be set to a boolean that, when true, makes the console output more verbose. This is useful if you are having issues getting this to generate the file. Default setting is false.
To run the script, run `gradlew en2ud`
And that's all there is to it! The output from running it will let you know if anything went wrong.
This supports ~~vanilla color codes (§1, §f, etc) and~~ variables inserted with %s, %d, etc.
Vanilla color code support is borked at the moment. Working on a fix.