Forked by WorldTranslationExtractor
This version changes some things.
Needs amulet-core and tqdm.
Install: pip install amulet-map-editor, pip install tqdm
- Allow to keep duplicate keys.
- Allow to backup the world.
- Support signs on 1.19+, chiseled bookshelves, decorated pots (1.19+), command blocks, beehive and bee nest.
- Convert to standard JSON format to generate language file.
- Add config.
- Support display entities.
- Support marco commands in datapacks.
- WTEM cannot change the target selector
name=and the container'sLocktag, but it will be recorded for later reference and correction.
The underlined and bold text means that this feature is newly added.
Here is the original README.md:
Scans a full world searching for json "text" components and replaces them with "translation" components, generating a lang file to be used with a resourcepack. Tested in 1.16.5 and 1.19.3.
Finds json components in:
-
Blocks
- Spawners: SpawnData, SpawnPotentials
- Containers: items, container name (
"chest","furnace","shulker_box","barrel","smoker","blast_furnace","trapped_chest","hopper","dispenser","dropper","brewing_stand","campfire","chiseled_bookshelf","decorated_pot") - (Hanging) Signs: text1-4, front_text, back_text
- Lecterns: Book
- Jukeboxes: RecordItem
- Beehives & Bee nests: Bees
- Command block: Command
-
Entities
- Name
- Items
- ArmorItems
- HandItems
- Inventory
- Villager offers
- Passengers
- Text Display
- Item Display
-
Items
- Name
- Lore
- Book pages
- Book title: adds a customname in case it doesn't already have one
- BlockEntityTag
- EntityTag
-
Scoreboard: objective names, team names and affixes
-
Bossbars: names
-
Datapacks: functions, json files
-
Structures: blocks, entities
Usage: python wtem.exe <world> (Modifies world, outputs en_us_*.json in the working directory)