paving.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. minetest.register_alias("castle:pavement", "castle_masonry:pavement_brick")
  2. minetest.register_alias("castle:pavement_brick", "castle_masonry:pavement_brick")
  3. minetest.register_alias("castle:roofslate", "castle_masonry:roofslate")
  4. -- internationalization boilerplate
  5. local MP = minetest.get_modpath(minetest.get_current_modname())
  6. local S, NS = dofile(MP.."/intllib.lua")
  7. minetest.register_node("castle_masonry:pavement_brick", {
  8. description = S("Paving Stone"),
  9. drawtype = "normal",
  10. tiles = {"castle_pavement_brick.png"},
  11. groups = utility.dig_groups("brick"),
  12. --paramtype = "light",
  13. sounds = default.node_sound_stone_defaults(),
  14. })
  15. minetest.register_craft({
  16. output = "castle_masonry:pavement_brick 4",
  17. recipe = {
  18. {"default:stone", "default:cobble"},
  19. {"default:cobble", "default:stone"},
  20. }
  21. })
  22. stairs.register_stair_and_slab("pavement_brick", "castle_masonry:pavement_brick",
  23. {cracky=2},
  24. {"castle_pavement_brick.png"},
  25. S("Castle Pavement"),
  26. default.node_sound_stone_defaults()
  27. )
  28. walls.register("masonry_pavement", "Paving Stone", "castle_pavement_brick.png",
  29. "castle_masonry:pavement_brick", default.node_sound_stone_defaults())