Skip to content

Commit 24f86a1

Browse files
committed
2.8 fix1
1 parent 9099b51 commit 24f86a1

5 files changed

Lines changed: 20 additions & 19 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## World Translation Extractor Modified (WTEM) 2.6
1+
## World Translation Extractor Modified (WTEM) 2.8
22
Forked by [WorldTranslationExtractor](https://github.com/5uso/AmuletScripts/blob/main/WorldTranslationExtractor.py)
33

44
### Information

README_zh_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 存档翻译提取器魔改版 (WTEM) 2.6
1+
## 存档翻译提取器魔改版 (WTEM) 2.8
22
World Translation Extractor Modified
33

44
Forked by [WorldTranslationExtractor](https://github.com/5uso/AmuletScripts/blob/main/WorldTranslationExtractor.py)

WorldTranslationExtractor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def filter(self, world, x: int, y: int, z: int):
9898
bl |= True
9999
return bl
100100

101-
return False
101+
return True
102102

103103

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

431+
# Written book
432+
# Writable book is untranslatable
431433
if 'pages' in item['tag']:
432434
for page in range(len(item['tag']['pages'])):
433435
set_key(f"item.{id}.{item_counts[id]}.page.{page}")
@@ -991,7 +993,7 @@ def main():
991993
\ \ \_/ \_\ \ \ \ \ \ \ \L\ \ \ \_/\ \
992994
\ `\___x___/ \ \_\ \ \____/\ \_\\ \_\
993995
'\/__//__/ \/_/ \/___/ \/_/ \/_/
994-
----WTEM v2.7 By 3093FengMing
996+
----WTEM v2.8 By 3093FengMing
995997
----Core: Amulet
996998
----Credits: Suso''')
997999
# os.system("pause")

changelog.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2.6-----2024/04/19 21:28
2+
1. 支持悬挂告示牌
3+
2. 语言文件删除冗余误伤修复
4+
3. 配置文件新增save_threshold,指定每遍历多少个区块保存一次
5+
6+
2.7-----2024/04/25 19:45
7+
1. 修复转义符提取bug(可能)
8+
2. 配置文件增加filter选项,指定哪些要过滤
9+
3. 配置文件lang新增file_name选项,指定输出语言文件名
10+
11+
2.8-----2024/05/03 01:33
12+
1. 修复世界位置筛选器为空时无法提取的Bug

config.json

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,8 @@
3333
"items_title": false
3434
},
3535
"filters": {
36-
"command_storages": [
37-
{
38-
"mode": "exclude",
39-
"namespace": "minecraft",
40-
"path": "a.b.c"
41-
}
42-
],
43-
"world_positions": [
44-
{
45-
"mode": "exclude",
46-
"world": "minecraft:overworld",
47-
"start": [0, -64, 0],
48-
"end": [100, 100, 100]
49-
}
50-
]
36+
"command_storages": [],
37+
"world_positions": []
5138
},
5239
"default_keys": {
5340
"": "wtem.empty",

0 commit comments

Comments
 (0)