代码初始化
This commit is contained in:
1 parent
c2f5cd98ff
commit
e3efeb74ad
2439 files changed
+305661
-1
No files matched your search
@@ -0,0 +1,46 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import json, os, sys, io
|
||||
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
OUT = r'e:\MCStudioDownload\work\3027246179@qq.com\Cpp\AddOn\0aaaa4f2f16c46e8964025a5ab0ecc02\_sa_hanhua_out\_tmp\herb_dump2\sa_essentials-forge-1.20.1-1.0.0\data\sa_combat'
|
||||
|
||||
rec = os.path.join(OUT, 'recipes', 'herbs')
|
||||
print('===== RECIPES =====')
|
||||
for f in sorted(os.listdir(rec)):
|
||||
d = json.load(open(os.path.join(rec, f), encoding='utf-8'))
|
||||
t = d.get('type', '')
|
||||
key = d.get('key', {})
|
||||
pat = d.get('pattern', '')
|
||||
ing = d.get('ingredients', '')
|
||||
res = d.get('result', '')
|
||||
print(f)
|
||||
print(' type:', t)
|
||||
if pat:
|
||||
print(' pattern:', pat)
|
||||
print(' key:', json.dumps(key, ensure_ascii=False))
|
||||
if ing:
|
||||
print(' ingredients:', json.dumps(ing, ensure_ascii=False))
|
||||
print(' result:', json.dumps(res, ensure_ascii=False))
|
||||
|
||||
bd = os.path.join(OUT, 'legendarysurvivaloverhaul', 'body_damage', 'consumables')
|
||||
print()
|
||||
print('===== LSO BODY DAMAGE =====')
|
||||
for f in sorted(os.listdir(bd)):
|
||||
d = json.load(open(os.path.join(bd, f), encoding='utf-8'))
|
||||
print(f, '=>', json.dumps(d, ensure_ascii=False))
|
||||
|
||||
lt = os.path.join(OUT, 'loot_tables', 'blocks')
|
||||
print()
|
||||
print('===== BLOCK LOOT TABLES =====')
|
||||
for f in sorted(os.listdir(lt)):
|
||||
d = json.load(open(os.path.join(lt, f), encoding='utf-8'))
|
||||
print(f, '=>', json.dumps(d, ensure_ascii=False))
|
||||
|
||||
print()
|
||||
print('===== LOOT MODIFIER =====')
|
||||
print(json.dumps(json.load(open(os.path.join(OUT, 'loot_modifiers', 'hostile_herb_drops.json'), encoding='utf-8')), ensure_ascii=False))
|
||||
|
||||
print()
|
||||
print('===== sa_decor herbs tag =====')
|
||||
p = r'e:\MCStudioDownload\work\3027246179@qq.com\Cpp\AddOn\0aaaa4f2f16c46e8964025a5ab0ecc02\_sa_hanhua_out\_tmp\herb_dump2\sa_decor-forge-1.20.1-1.0.3\data\sa_decor\tags\items\herbs.json'
|
||||
print(open(p, encoding='utf-8').read())
|
||||
Reference in new issue
Block a user