init.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. {"white", "White", "basecolor_white"},
  3. {"grey", "Grey", "basecolor_grey"},
  4. {"black", "Black", "basecolor_black"},
  5. {"red", "Red", "basecolor_red"},
  6. {"yellow", "Yellow", "basecolor_yellow"},
  7. {"green", "Green", "basecolor_green"},
  8. {"cyan", "Cyan", "basecolor_cyan"},
  9. {"blue", "Blue", "basecolor_blue"},
  10. {"magenta", "Magenta", "basecolor_magenta"},
  11. {"orange", "Orange", "excolor_orange"},
  12. {"violet", "Violet", "excolor_violet"},
  13. {"brown", "Brown", "unicolor_dark_orange"},
  14. {"pink", "Pink", "unicolor_light_red"},
  15. {"dark_grey", "Dark Grey", "unicolor_darkgrey"},
  16. {"dark_green", "Dark Green", "unicolor_dark_green"},
  17. --]]
  18. local dyes =
  19. {
  20. "white",
  21. "grey",
  22. "black",
  23. "red",
  24. "yellow",
  25. "green",
  26. "cyan",
  27. "blue",
  28. "magenta",
  29. "orange",
  30. "violet",
  31. "brown",
  32. "pink",
  33. "dark_grey",
  34. "dark_green",
  35. }
  36. for i = 1, #dyes, 1 do
  37. local n = dyes[i]
  38. stairs.register_stair_and_slab(
  39. "wool"..n,
  40. "wool:"..n,
  41. {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3},
  42. {"wool_"..n..".png"},
  43. "Wool",
  44. default.node_sound_defaults()
  45. )
  46. end