Appearance
Translations
Put JSON files into your jar at assets/<addon id>/lang/:
src/main/resources/assets/my-addon/lang/en_us.json
src/main/resources/assets/my-addon/lang/de_de.jsonLynxClient shows German or English, following the player's choice (or Minecraft's language). Keys missing in the player's language fall back to English.
Keys
| Key | Used for |
|---|---|
module.<module id>.name | Module tile and settings page |
module.<module id>.description | Text under the name |
module.<module id>.<field>.name | One setting |
module.<module id>.<field>.description | Help text of a setting |
enum.<EnumClass>.<CONSTANT> | Entries of a @Dropdown |
json
{
"module.my_addon_speed.name": "Speedometer",
"module.my_addon_speed.description": "Your speed over the ground.",
"module.my_addon_speed.unit.name": "Unit",
"enum.SpeedUnit.BLOCKS_PER_SECOND": "Blocks per second",
"enum.SpeedUnit.KILOMETRES_PER_HOUR": "km/h"
}Settings without their own key use LynxClient's general texts (scale, background, …). Addons cannot override LynxClient's texts. Give your enums distinct names, because enum.<Class> keys are shared by everyone.