init.lua 235 B

1234567891011
  1. local function register_color(name)
  2. minetest.register_node('color:'..name, {
  3. description = name,
  4. tiles = {'color_'..name..'.png'},
  5. groups = {breakable=1},
  6. })
  7. end
  8. register_color('black')
  9. register_color('white')