Skip to content

Commit 607de7a

Browse files
committed
Add resourcepacks translation keys & meta JSONs
1 parent 13f9bb8 commit 607de7a

File tree

9 files changed

+73
-0
lines changed

9 files changed

+73
-0
lines changed

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/lunarclient.dev.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"apollo": "Apollo",
55
"server-mappings": "Server Mappings",
66
"deep-links": "Deep Links",
7+
"resourcepacks": "Resourcepacks",
78
"client-brand": "Client Brand",
89
"server-partner-program": "Server Partner Program"
910
}

deep-links/_meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"introduction": "Introduction",
3+
"play": "Play"
4+
}

resourcepacks/_meta.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"translation-keys": "Translation Keys"
3+
}

resourcepacks/translation-keys.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Translation Keys
2+
3+
Lunar Client supports custom translation keys that server owners and in some cases normal resourcepacks can adjust to enhance Lunar Client player's experience. This documentation provides guidelines, formats, and examples to explain how to implement these translation keys.
4+
5+
## Implementation
6+
7+
- **Add Translation Key**:
8+
- **_Step 1_**: Find the `en_us.json` file, open it.
9+
- **_Step 2_**: Scroll to the bottom and paste in the translation key you want to modify.
10+
- **_Step 3_**: Replace the `<namespace>` section with the [namespace](https://minecraft.wiki/w/Resource_location#Namespaces) you want to target.
11+
- **_Step 4_**: Modify the `<Id>` section of your key, with the ID of the property you want to target.
12+
- **_Step 5_**: Add your translation in the `<translation>` section.
13+
- **_Step 6 (Optional)_**: Add color codes! Lunar Client supports the `§` symbol for [Minecraft Color Codes](https://www.lunarclient.com/tools/color-codes) in translation keys.
14+
- **Ship it!**: Yep, it's that easy!
15+
16+
17+
## Modifiable Translation Keys
18+
19+
These are all the current translation keys that can be modified for better Lunar Client integration.
20+
21+
### Biomes
22+
23+
You can customize the names of biomes using the following format:
24+
25+
- **Format**: `biome.<namespace>.<biomeId>`: `<translation>`
26+
- **Example**: `biome.lunarnetwork.lobby_halloween: §6Halloween Lobby`
27+
28+
### Dimensions
29+
30+
You can customize the dimension names using the following format:
31+
32+
- **Format**: `dimension.<namespace>.<dimensionId>`: `<translation>`
33+
- **Example**: `dimension.lunarnetwork.nether: §cNether`

0 commit comments

Comments
 (0)