[DISCONTINUED] Localized Written Books

Quick rating

[DISCONTINUED] Localized Written Books

No reviews yet

Make your lore books support languages!

QoL & Tweaks
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
LocWrittenBooks-1.12.2-1.0.0
Authors

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

This mod was just the 2nd 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 Server and Client side mod, powered by Mixin which adds "locTitle" and "locAuthor" NBT tag support for Written Books.

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!

Book comparison

You ever wanted to add written books that tell a story (lore) about your modpack,

-either using commands or mod's config files (like Recurrent complex's loot, Dregora's loot, etc.)-

but your users are constrained by language barriers?

Normally, modpack creators use these tags to create a written book:

{pages:["{"text":

"Do not run but hide as they will come.\nHowls in the night, Dark red eyes... They will hunt...\nThey will grunt... Stay hidden, close the doors\nFootsteps on the nearby floors... It is too late\nThey found their prey..."

}"],

title: "At Twilight",

author: "The Dark Witch",

display:{Lore:["Dark Omen"], ench:[{id:10,lvl:1}]}

To solve part of this problem, Minecraft 1.12.2 supports the "translate" tag, which allows you to use a language key for each page.

And with this Mixin, now you can change the written book NBT data to this:

{pages:["{"translate": "book.dregorarl.AtTwilight.page.1"}"],

locTitle: "book.dregorarl.AtTwilight.title",

locAuthor: "book.dregorarl.AtTwilight.author",

display:{LocLore:["book.dregorarl.AtTwilight.lore"], ench:[{id:10,lvl:1}]}

(for the LocLore tag, you'll need my "Localized Lore" Mixin)

If you want to immediately try out this Mixin, you can write this command:

/give @p written_book 1 0 {pages:["{\"translate\":\"book.locwrittenbooksmixin.Example.page.1\"}"],locTitle:"book.locwrittenbooksmixin.Example.title",locAuthor:"book.locwrittenbooksmixin.Example.author"}

Combination examples:

"title" and "author"

"title" and "locAuthor"

"locTitle" and "author"

"locTitle" and "locAuthor"

If you set both "title" AND "locTitle", or "author" AND "locAuthor" tags, the localized tags will take precedence.

Why setting both, you ask?

This is if your mod is server-side and you want to accept vanilla clients.

Vanilla clients will only see the information from "title" and "author".

Clients with this Mixin will see the information from "locTitle" and "locAuthor" instead.

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

For Written Book's data structure, check this link.

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

Screenshots

Gallery

  • Book Comparison
    Book Comparison Same book, different client language

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works