This commit is contained in:
9
46/build.py
Normal file
9
46/build.py
Normal file
@ -0,0 +1,9 @@
|
||||
import os
|
||||
|
||||
current_dir = os.getcwd()
|
||||
|
||||
# Removing all old item Model json files, since they are now located in 'assets/minecraft/items' and are a different format!
|
||||
itemModelsDir = os.path.join(current_dir, "assets/minecraft/models/item")
|
||||
jsonFiles = [name for name in os.listdir(itemModelsDir) if os.path.isfile(os.path.join(itemModelsDir, name)) and name.endswith(".json") ]
|
||||
for jsonFile in jsonFiles:
|
||||
os.remove(os.path.join(itemModelsDir, jsonFile))
|
||||
Reference in New Issue
Block a user