Files
TexturePack/46/build.py
YoyoNow ce09d3bc6d
All checks were successful
SteamWarCI Build successful
Fix pack version from 61 to 46
2025-06-12 22:15:36 +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))