调整ai数据
This commit is contained in:
1 parent
f8c300a4c6
commit
c2f5cd98ff
493 files changed
+7
-7
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import zipfile
|
||||
|
||||
base = r'e:\MCStudioDownload\work\3027246179@qq.com\Cpp\AddOn\309c2d420bc84ee986db9cdd070ff02a\_sa_hanhua_out'
|
||||
jars = {
|
||||
'essentials': base + r'\sa_essentials-forge-1.20.1-1.0.0.jar',
|
||||
'lib': base + r'\sa_lib-forge-1.20.1-1.0.1.jar',
|
||||
'decor': base + r'\sa_decor-forge-1.20.1-1.0.3.jar',
|
||||
}
|
||||
|
||||
import json
|
||||
for name, jar in jars.items():
|
||||
print('='*30, name, '='*30)
|
||||
with zipfile.ZipFile(jar) as z:
|
||||
for n in z.namelist():
|
||||
if n.startswith('assets/') and n.endswith('/lang/zh_cn.json'):
|
||||
data = json.loads(z.read(n).decode('utf-8'))
|
||||
print('---', n, '---')
|
||||
for k, v in data.items():
|
||||
if 'mod' in k or 'arsenal' in k.lower() or 'survivor' in k.lower() or 'creative' in k or 'tab' in k:
|
||||
print(f' {k} = {v}')
|
||||
print()
|
||||
Reference in new issue
Block a user