promotional bannermobile promotional banner

[DISCONTINUED] Localized Lore

A Mixin that adds LocLore tag support

This mod was just the 1st step to my final goal: Localizator.

Therefore, this mod won't get updates, bug fixes or anything.

Instead of downloading this mod, download Localizator. It does what this mod does, even better and much much more!

Download Localizator!

 

 

This is a Client-side mod, powered by Mixin which adds "LocLore" NBT tag support.

The feature language-aware modpack creators need!

(You are free to include this in your modpack)

 

You'll need to add the Mixin Bootstrap into your mods folder (only if your modpack doesn't already have it) so Mixins can load up!

 

Fake Notch Apple (English)

Fake Notch Apple (Spanish)

 

You ever wanted to add a special loot, based on a vanilla/modded item with custom, translatable name and lore?

Either using commands or mod's config files (like Bountiful's rewards, DoomLike Dungeons' loot, Dregora's loot, etc.)

Normally, modpack creators use the "Name" tag to rename an item, but it's a hardcoded text.

"{ench:[{lvl:10,id:34}],display:{Name:\"The Eternal Dooter\"}}"

and the "Lore" tag to add a lore to it.

"{display:{Lore:[\"Sharper than Usual.\"]},ench:[{id:16,lvl:1}]}"

 

This means that if a player uses minecraft in a language different than your hardcoded text, they may not understand it.

 

To solve part of this problem, Minecraft 1.12.2 supports the "LocName" tag, which allows you to replace an item's name with a custom, translatable one. (it takes a lang key)

And the better part is, that name isn't hard-italic formatted!
But Vanilla doesn't have that support for the "Lore" tag. That's where the "LocLore" tag comes in!

Example:

/give @p stone 1 0 {display:{LocName:"tile.stone.andesiteSmooth.name",LocLore:["tile.shulkerBoxGray.name"]}}

And same as "LocName", I made it so it doesn't forcedly apply italic format.

 

Tested with RLCraft, a heavily customized modpack that includes tons of mods and Mixins. 

 

Remember to add your custom lang file with your lang keys inside the resources folder or Resource Pack!

Example: 

example.redtext=§cThis is a red text


For a text formatting guide, check this article.

 

The [DISCONTINUED] Localized Lore Team

profile avatar
Owner
  • 18
    Followers
  • 14
    Projects
  • 4.8M
    Downloads

More from KameiBView all