Skip to content

Commit

Permalink
2.8 fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
3093FengMing committed May 2, 2024
1 parent 9099b51 commit 24f86a1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## World Translation Extractor Modified (WTEM) 2.6
## World Translation Extractor Modified (WTEM) 2.8
Forked by [WorldTranslationExtractor](https://github.com/5uso/AmuletScripts/blob/main/WorldTranslationExtractor.py)

### Information
Expand Down
2 changes: 1 addition & 1 deletion README_zh_cn.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 存档翻译提取器魔改版 (WTEM) 2.6
## 存档翻译提取器魔改版 (WTEM) 2.8
World Translation Extractor Modified

Forked by [WorldTranslationExtractor](https://github.com/5uso/AmuletScripts/blob/main/WorldTranslationExtractor.py)
Expand Down
6 changes: 4 additions & 2 deletions WorldTranslationExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def filter(self, world, x: int, y: int, z: int):
bl |= True
return bl

return False
return True


class meta_dict(dict):
Expand Down Expand Up @@ -428,6 +428,8 @@ def handle_item(item, dupe=False):
item['tag']['display']['Lore'][line] = replace_component(item['tag']['display']['Lore'][line], dupe | cfg_dupe["items_lore"] | cfg_dupe["items_all"])
changed = True

# Written book
# Writable book is untranslatable
if 'pages' in item['tag']:
for page in range(len(item['tag']['pages'])):
set_key(f"item.{id}.{item_counts[id]}.page.{page}")
Expand Down Expand Up @@ -991,7 +993,7 @@ def main():
\ \ \_/ \_\ \ \ \ \ \ \ \L\ \ \ \_/\ \
\ `\___x___/ \ \_\ \ \____/\ \_\\ \_\
'\/__//__/ \/_/ \/___/ \/_/ \/_/
----WTEM v2.7 By 3093FengMing
----WTEM v2.8 By 3093FengMing
----Core: Amulet
----Credits: Suso''')
# os.system("pause")
Expand Down
12 changes: 12 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
2.6-----2024/04/19 21:28
1. 支持悬挂告示牌
2. 语言文件删除冗余误伤修复
3. 配置文件新增save_threshold,指定每遍历多少个区块保存一次

2.7-----2024/04/25 19:45
1. 修复转义符提取bug(可能)
2. 配置文件增加filter选项,指定哪些要过滤
3. 配置文件lang新增file_name选项,指定输出语言文件名

2.8-----2024/05/03 01:33
1. 修复世界位置筛选器为空时无法提取的Bug
17 changes: 2 additions & 15 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,8 @@
"items_title": false
},
"filters": {
"command_storages": [
{
"mode": "exclude",
"namespace": "minecraft",
"path": "a.b.c"
}
],
"world_positions": [
{
"mode": "exclude",
"world": "minecraft:overworld",
"start": [0, -64, 0],
"end": [100, 100, 100]
}
]
"command_storages": [],
"world_positions": []
},
"default_keys": {
"": "wtem.empty",
Expand Down

0 comments on commit 24f86a1

Please sign in to comment.