1
0
Fork 0

Converter: Add mcl_supplemental support

objects
Wuzzy 2017-11-18 20:30:21 +01:00
parent 14578baec1
commit 6a8cf24100
2 changed files with 11 additions and 0 deletions

View File

@ -898,3 +898,7 @@ Source path,Source file,Target path,Target file,xs,ys,xl,yl,xt,yt,Blacklisted?
/assets/minecraft/textures/blocks,endframe_side.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_endframe_side.png,,,,,,, /assets/minecraft/textures/blocks,endframe_side.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_endframe_side.png,,,,,,,
/assets/minecraft/textures/blocks,endframe_eye.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_endframe_eye.png,,,,,,, /assets/minecraft/textures/blocks,endframe_eye.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_endframe_eye.png,,,,,,,
/assets/minecraft/textures/blocks,end_stone.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_endframe_bottom.png,,,,,,, /assets/minecraft/textures/blocks,end_stone.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_endframe_bottom.png,,,,,,,
/assets/minecraft/textures/blocks,red_nether_brick.png,,mcl_supplemental_fence_red_nether_brick.png,,,,,,,
/assets/minecraft/textures/blocks,red_nether_brick.png,,mcl_supplemental_fence_gate_red_nether_brick.png,,,,,,,
/assets/minecraft/textures/blocks,nether_brick.png,,mcl_supplemental_fence_gate_nether_brick.png,,,,,,,
/assets/minecraft/textures/blocks,stonebrick_carved.png,,mcl_supplemental_stonebrick_carved_slab.png,,,,,,,

1 Source path Source file Target path Target file xs ys xl yl xt yt Blacklisted?
898 /assets/minecraft/textures/blocks endframe_side.png /mods/ITEMS/mcl_portals/textures mcl_portals_endframe_side.png
899 /assets/minecraft/textures/blocks endframe_eye.png /mods/ITEMS/mcl_portals/textures mcl_portals_endframe_eye.png
900 /assets/minecraft/textures/blocks end_stone.png /mods/ITEMS/mcl_portals/textures mcl_portals_endframe_bottom.png
901 /assets/minecraft/textures/blocks red_nether_brick.png mcl_supplemental_fence_red_nether_brick.png
902 /assets/minecraft/textures/blocks red_nether_brick.png mcl_supplemental_fence_gate_red_nether_brick.png
903 /assets/minecraft/textures/blocks nether_brick.png mcl_supplemental_fence_gate_nether_brick.png
904 /assets/minecraft/textures/blocks stonebrick_carved.png mcl_supplemental_stonebrick_carved_slab.png

View File

@ -160,6 +160,13 @@ def convert_textures():
# Skip blacklisted files # Skip blacklisted files
continue continue
if make_texture_pack == False and dst_dir == "":
# If destination dir is empty, this texture is not supposed to be used in MCL2
# (but maybe an external mod). It should only be used in texture packs.
# Otherwise, it must be ignored.
# Example: textures for mcl_supplemental
continue
src_file = base_dir + src_dir + "/" + src_filename # source file src_file = base_dir + src_dir + "/" + src_filename # source file
src_file_exists = os.path.isfile(src_file) src_file_exists = os.path.isfile(src_file)
dst_file = target_dir(dst_dir) + "/" + dst_filename # destination file dst_file = target_dir(dst_dir) + "/" + dst_filename # destination file