Files
TexturePack/61/build.py
YoyoNow 9d27e970ce
All checks were successful
SteamWarCI Build successful
Fix 1.21.4 texture pack
2025-06-11 10:51:36 +02:00

10 lines
427 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))]
for jsonFile in jsonFiles:
os.remove(os.path.join(itemModelsDir, jsonFile))