18 lines
544 B
Python
18 lines
544 B
Python
from PIL import Image
|
|
import os
|
|
|
|
textures_dir = "src/main/resources/assets/enct/textures/block"
|
|
os.makedirs(textures_dir, exist_ok=True)
|
|
|
|
colors = {
|
|
"enchantment_transferrer_top": (120, 80, 200),
|
|
"enchantment_transferrer_bottom": (80, 80, 80),
|
|
"enchantment_transferrer_side": (100, 100, 120),
|
|
"enchantment_transferrer_front": (140, 100, 220),
|
|
}
|
|
|
|
for name, color in colors.items():
|
|
img = Image.new('RGBA', (16, 16), color + (255,))
|
|
img.save(f"{textures_dir}/{name}.png", 'PNG')
|
|
|
|
print("Textures generated successfully!")
|