Mod
RichLocalTextLib
No reviews yet
Rich text support for translations
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
RichLokalТекстLib
RichLocalText is a library that allows modders and pack-makers to use translated rich text.
Easily add font styles and colors anywhere without code!
Installation
Drop the .jar into the /mods folder, and enjoy rich localization text.
Requires no other dependencies.
*resourcepack utilizing the Rich™ Lokal™ Текст™ Capabilities™ not included.
Usage
Use /tellraw-like format in language files.
When overriding a string that has format placeholders use {"index":n} instead;
Example, changing the default chat text format:

N.B.: If your first text component is styled, all components after it will inherit its style. This is a Minecraft quirk that we are not going to fix.
This results in text like this:

RichLokalТекстLib
RichLocalText is a library that allows modders and pack-makers to use translated rich text.
Easily add font styles and colors anywhere without code!
Installation
Drop the .jar into the /mods folder, and enjoy rich localization text.
Requires no other dependencies.
*resourcepack utilizing the Rich™ Lokal™ Текст™ Capabilities™ not included.
Usage
Use /tellraw-like format in language files.
When overriding a string that has format placeholders use {"index":n} instead;
Example, changing the default chat text format:
//en_us.json
{
"chat.type.text":
[
"",
{"text":"A mysterious stranger known only as <", "color": "gray"},
{"index":0, "obfuscated": true},
{"text":"> uttered: \"", "color": "gray"},
{"index":1},
{"text":"\"", "color": "gray"}
]
}
N.B.: If your first text component is styled, all components after it will inherit its style. This is a Minecraft quirk that we are not going to fix.
This results in text like this:

Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers