|
1 | 1 | <div align="center"> |
2 | | - <img height="100px" width="100px" alt="logo" src="./common/src/main/resources/assets/vmtranslationupdate/icon.png"/> |
3 | | - <h1>VM Translation Update</h1> |
| 2 | + <img height="128px" width="128px" alt="logo" src="./common/src/main/resources/assets/texturelocaleredirector/icon.png"/> |
| 3 | + <h1>Texture Locale Redirector</h1> |
4 | 4 |
|
5 | | -<a href="https://modrinth.com/project/vmupdate/"> |
| 5 | +<a href="README_CN.md">中文</a> | English |
| 6 | + |
| 7 | +<a href="https://modrinth.com/project/texture-locale-redirector"> |
6 | 8 | <img alt="modrinth" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg"> |
7 | 9 | </a> |
8 | | -<a href="https://www.curseforge.com/minecraft/mc-mods/vmtranslationupdate"> |
| 10 | +<a href="https://www.curseforge.com/minecraft/mc-mods/texture-locale-redirector"> |
9 | 11 | <img alt="curseforge" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg"> |
10 | 12 | </a> |
11 | | -<a href="https://www.mcmod.cn/class/11203.html"> |
12 | | -<img alt="mcmod.cn" height="56" src="https://raw.githubusercontent.com/KessokuTeaTime/Badges-Extra/main/assets/cozy/available/mcmodcn_vector.svg"> |
13 | | -</a> |
14 | 13 |
|
15 | | -<img alt="forge" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/supported/forge_vector.svg"> (1.12.2、1.16.5、1.18-1.20.1) |
16 | | -<img alt="neoforge" height="56" src="https://raw.githubusercontent.com/KessokuTeaTime/Badges-Extra/main/assets/cozy/supported/neoforge_vector.svg"> (≥1.20.1) |
17 | | -<img alt="fabric" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/supported/fabric_vector.svg"> (≥1.16.5) |
| 14 | +<img alt="forge" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/supported/forge_vector.svg"> |
| 15 | +<img alt="neoforge" height="56" src="https://raw.githubusercontent.com/KessokuTeaTime/Badges-Extra/main/assets/cozy/supported/neoforge_vector.svg"> |
| 16 | +<img alt="fabric" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/supported/fabric_vector.svg"> |
18 | 17 | </div> |
| 18 | + |
| 19 | +**Texture Locale Redirector** adds native multi-language texture support to Minecraft resource packs. |
| 20 | + |
| 21 | +By extending vanilla resource loading mechanism, this mod allows you to provide language-specific textures within a single resource pack. |
| 22 | +It solves the problem where localized textures (with text or symbols) for one language may negatively affect players in other languages. |
| 23 | + |
| 24 | +## Usage |
| 25 | + |
| 26 | +Follow these three simple steps to enable multi-language textures: |
| 27 | + |
| 28 | +1. **Install the mod**: Place this mod in your `mods` folder. |
| 29 | +2. **Create a resource pack**: Organize your localized textures according to the required folder structure. |
| 30 | +3. **Start the game**: Enable the resource pack and switch to the corresponding language in Minecraft. |
| 31 | + |
| 32 | +## Resource Pack Structure Example |
| 33 | + |
| 34 | +Inside your resource pack, store localized textures under `assets/<namespace>/textures/<language>/`. |
| 35 | + |
| 36 | +- `<namespace>` is the namespace — `minecraft` for vanilla, or the modid for mods. |
| 37 | +- `<language>` is the language code, such as `zh_cn` (Simplified Chinese) or `ja_jp` (Japanese). |
| 38 | + |
| 39 | +**Note:** The relative path of the texture to be replaced must match the original texture path. |
| 40 | + |
| 41 | +``` |
| 42 | +ResourcePackName/ |
| 43 | +└── assets/ |
| 44 | + └── minecraft (namespace)/ |
| 45 | + └── textures/ |
| 46 | + ├── zh_cn/ # Simplified Chinese textures |
| 47 | + │ ├── block/ |
| 48 | + │ │ └── dirt.png # Replaced dirt texture |
| 49 | + │ └── item/ |
| 50 | + │ └── diamond_sword.png # Replaced diamond sword texture |
| 51 | + └── ja_jp/ # Japanese textures |
| 52 | + └── item/ |
| 53 | + └── diamond_sword.png # Replaced diamond sword texture |
| 54 | +``` |
| 55 | + |
| 56 | +## Performance |
| 57 | + |
| 58 | +This mod is heavily optimized and should have negligible performance impact: |
| 59 | + |
| 60 | +* Works **only** when the current language is not `en_us`, meaning no effect for English players. |
| 61 | +* Implements an **advanced caching system** to drastically reduce unnecessary disk I/O. |
| 62 | +* Clears cache upon language change or resource reload, ensuring textures are updated immediately. |
| 63 | +* Automatically releases cache memory when system memory is low to prevent lag. |
| 64 | +* If a resource pack has no language-specific texture folder, no replacement scan is performed — avoiding unnecessary work. |
| 65 | +* Does not interfere with the normal operation of other resource packs. |
| 66 | + |
| 67 | +## License |
| 68 | + |
| 69 | +This project is open-sourced under the [MIT License](LICENSE). |
| 70 | + |
| 71 | +Contributions and PRs are welcome! Feel free to submit issues for bug reports or feature requests. |
0 commit comments