From 729c176ff499ee1c749d54bd38de214eafb511d9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 7 Feb 2019 21:24:19 +0100 Subject: [PATCH] Texture Converter: Add description.txt --- tools/Texture_Converter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/Texture_Converter.py b/tools/Texture_Converter.py index 6cb6cdb4f..d89a57186 100755 --- a/tools/Texture_Converter.py +++ b/tools/Texture_Converter.py @@ -375,6 +375,11 @@ def convert_textures(): colorize(GRASS, tex_dir+"/blocks/grass_top.png", o[0], str(PXSIZE), target_dir("/mods/ITEMS/mcl_core/textures")+"/default_"+o[2]+".png") colorize_alpha(GRASS, tex_dir+"/blocks/grass_side_overlay.png", o[0], str(PXSIZE), target_dir("/mods/ITEMS/mcl_core/textures")+"/default_"+o[2]+"_side.png") + # Create description file + description = "Automatically converted Minecraft texture pack from MineClone 2 Texture Converter.\nSize: "+str(PXSIZE)+"px×"+str(PXSIZE)+"px" + description_file = open(target_dir("/") + "/description.txt", "w") + description_file.write(description) + description_file.close() print("Textures conversion COMPLETE!") if failed_conversions > 0: