init.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. -- Stairs.
  2. local register_stairs = function(basename)
  3. local ndef = minetest.registered_nodes["darkage:" .. basename]
  4. if ndef then
  5. local groups = utility.copy_builtin_groups(ndef.groups)
  6. stairs.register_stair_and_slab(
  7. basename,
  8. "darkage:" .. basename,
  9. groups,
  10. ndef.tiles,
  11. ndef.description,
  12. ndef.sounds
  13. )
  14. end
  15. end
  16. register_stairs("basaltic")
  17. register_stairs("basaltic_brick")
  18. register_stairs("basaltic_rubble")
  19. register_stairs("chalked_bricks")
  20. register_stairs("gneiss")
  21. register_stairs("gneiss_brick")
  22. register_stairs("gneiss_rubble")
  23. register_stairs("marble")
  24. register_stairs("tuff")
  25. register_stairs("tuff_bricks")
  26. register_stairs("old_tuff_bricks")
  27. register_stairs("ors")
  28. register_stairs("ors_brick")
  29. register_stairs("ors_rubble")
  30. register_stairs("rhyolitic_tuff")
  31. register_stairs("rhyolitic_tuff_bricks")
  32. register_stairs("schist")
  33. register_stairs("shale")
  34. register_stairs("slate")
  35. register_stairs("slate_brick")
  36. register_stairs("slate_rubble")
  37. register_stairs("slate_tile")
  38. register_stairs("stone_brick")
  39. -- Special: stairs ONLY, no walls/castle stuff!
  40. register_stairs("marble_tile")
  41. register_stairs("straw_bale")