init.lua 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. -- Walls.
  2. local register_wall = function(basename)
  3. local ndef = minetest.registered_nodes["darkage:" .. basename]
  4. if ndef then
  5. local image = ndef.tiles[1]
  6. if type(image) == "string" then
  7. walls.register(
  8. basename,
  9. ndef.description,
  10. image,
  11. "darkage:" .. basename,
  12. ndef.sounds
  13. )
  14. end
  15. end
  16. end
  17. register_wall("basaltic")
  18. register_wall("basaltic_brick")
  19. register_wall("basaltic_rubble")
  20. register_wall("chalked_bricks")
  21. register_wall("gneiss")
  22. register_wall("gneiss_brick")
  23. register_wall("gneiss_rubble")
  24. register_wall("marble")
  25. register_wall("tuff")
  26. register_wall("tuff_bricks")
  27. register_wall("old_tuff_bricks")
  28. register_wall("ors")
  29. register_wall("ors_brick")
  30. register_wall("ors_rubble")
  31. register_wall("rhyolitic_tuff")
  32. register_wall("rhyolitic_tuff_bricks")
  33. register_wall("schist")
  34. register_wall("shale")
  35. register_wall("slate")
  36. register_wall("slate_brick")
  37. register_wall("slate_rubble")
  38. register_wall("slate_tile")
  39. register_wall("stone_brick")