Skip to content

Localized Entity Name

KameiB edited this page Jan 4, 2025 · 6 revisions

Localized Entity Name

When an entity gets assigned a custom name, Minecraft directly displays the contents in its CustomName NBT tag as a String.
Localizator changes this behaviour to make Minecraft try and translate CustomName contents.
With this, now you can use a language key inside an Entity's CustomName NBT tag!

So, instead of doing this:

{
	CustomName: "Eagle - The Founder"
}

you can do this:

{
	CustomName: "entity.dregorarl.Eagle.name"
}

Localizator Mixins into the Neat mod, so it also translates entity names.

Usage (Command)

This also works for bosses! Try it out!

/summon minecraft:wither ~ ~ ~ {CustomName:"entity.localizator.KameiB.name"}

image
Boss with a localized CustomName

Usage (Survival Mode)

Or rename a mob using a Name Tag with a language key as its value.
image

image

Support for Vanilla clients

If you want to keep support for Vanilla clients, there's a cheezy way to accomplish the desired result:
Make a lang key with the exact name that your Entity has.
That's it.

That's what I had to do to translate bosses when connected to a server, and it also works for Lycanite's event creatures, like Satan Claws, etc.
So, your language key would look like this:
Satan Claws=SatΓ‘n Claus

Trust me, it works lol.

Clone this wiki locally