minetest-lexip16/rules/stained_glass.py

25 lines
593 B
Python
Raw Normal View History

2016-06-10 11:45:07 +08:00
from rules.unifieddyes import (_unifieddyes_color_modifiers,
_unifieddyes_colors_base)
2016-05-21 21:48:20 +08:00
_stained_glass_modifiers = _unifieddyes_color_modifiers | {
'faint_{}', 'pastel_{}',
}
_stained_glass_colors = {
modifier.format(color)
for color in _unifieddyes_colors_base
for modifier in _stained_glass_modifiers
}
_stained_glass_color_map = {
2016-06-10 12:01:08 +08:00
name: 'color_' + name
2016-05-21 21:48:20 +08:00
for name in _stained_glass_colors
}
textures = {
'stained_glass_' + name: (color, 'simple_block', 'stained_glass')
for name, color in _stained_glass_color_map.items()
}