Skip to content

Commit

Permalink
fix bow 2d gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kigkosa committed Feb 24, 2023
1 parent 9772ac9 commit 89cf5b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,16 @@ def GButton_674_command(self):
elif 'BOW' in documents['items'][key]['material']:
# documents['items'][key].pop('material')
gnd = get_namespace+"/"+documents['items'][key]['Pack']['model']



# documents['items'][key]['Pack']['charged_model'] = gnd+'_pulling_2'
documents['items'][key]['Pack']['pulling_models'] = [
gnd+'_0',
gnd+'_1',
gnd+'_2'
]


elif 'FISHING_ROD' in documents['items'][key]['material']:
gnd = get_namespace+"/"+documents['items'][key]['Pack']['model']
Expand Down Expand Up @@ -309,6 +312,9 @@ def GButton_674_command(self):
gnd+'_1',
gnd+'_2'
]
for tr in documents['items'][key]['Pack']['pulling_models']:
with open(f"Oraxen/pack/models/{tr}.json", "w") as f:
f.write('{"parent":"minecraft:item/bow","textures":{"layer0":"'+tr+'"}}')

elif 'FISHING_ROD' in documents['items'][key]['material']:
gnd = documents['items'][key]['Pack']['textures'][0]
Expand Down

0 comments on commit 89cf5b2

Please sign in to comment.