init.lua 475 B

123456789101112131415161718192021222324252627282930313233
  1. -- Must match the list in the "dye" mod.
  2. local dyes = {
  3. "white",
  4. "grey",
  5. "black",
  6. "red",
  7. "yellow",
  8. "green",
  9. "cyan",
  10. "blue",
  11. "magenta",
  12. "orange",
  13. "violet",
  14. "brown",
  15. "pink",
  16. "dark_grey",
  17. "dark_green",
  18. }
  19. for i = 1, #dyes, 1 do
  20. local n = dyes[i]
  21. stairs.register_stair_and_slab(
  22. "wool" .. n,
  23. "wool:" .. n,
  24. {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3},
  25. {"wool_" .. n .. ".png"},
  26. "Wool",
  27. default.node_sound_defaults()
  28. )
  29. end