Files
TexturePack/61/build.py
YoyoNow 80f86ed09a
All checks were successful
SteamWarCI Build successful
Fix 61 build.py
2025-06-11 11:13:29 +02:00

10 lines
455 B
Python

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))