Now it finally works
This commit is contained in:
parent
d285533965
commit
31cf003692
8
make.py
8
make.py
|
@ -189,13 +189,13 @@ async def main():
|
||||||
for color in GLASS_COLORS:
|
for color in GLASS_COLORS:
|
||||||
out_path = GLASS_OUTPUT_PATH / color
|
out_path = GLASS_OUTPUT_PATH / color
|
||||||
out_path.mkdir(exist_ok=True)
|
out_path.mkdir(exist_ok=True)
|
||||||
with (out_path / "glass.properties").open("w") as fp:
|
texture_name = f"{color}_greenhouse_glass"
|
||||||
texture_name = f"{color}_greenhouse_glass"
|
with (out_path / f"{texture_name}.properties").open("w") as fp:
|
||||||
fp.write("method=ctm\n")
|
fp.write("method=ctm\n")
|
||||||
fp.write(f"matchBlocks=seasonextras:{texture_name}\n")
|
fp.write(f"matchBlocks=seasonsextras:{texture_name}\n")
|
||||||
fp.write(f"tiles=0-46\n")
|
fp.write(f"tiles=0-46\n")
|
||||||
fp.write(f"connect=block\n")
|
fp.write(f"connect=block\n")
|
||||||
fp.write(f"resourceCondition=textures/block/{texture_name}.png\n")
|
fp.write(f"resourceCondition=seasonextras:textures/block/{texture_name}.png\n")
|
||||||
with Image.open(GLASS_CACHE_SEAMLESS / f"{color}.png") as glass:
|
with Image.open(GLASS_CACHE_SEAMLESS / f"{color}.png") as glass:
|
||||||
for i in range(47):
|
for i in range(47):
|
||||||
ctm = Image.composite(border_texture, glass, ctm_list[i])
|
ctm = Image.composite(border_texture, glass, ctm_list[i])
|
||||||
|
|
Loading…
Reference in New Issue