local function register_color(name) minetest.register_node('color:'..name, { description = name, tiles = {'color_'..name..'.png'}, groups = {breakable=1}, }) end register_color('black') register_color('white')