stone_wall.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. -- internationalization boilerplate
  2. local MP = minetest.get_modpath(minetest.get_current_modname())
  3. local S, NS = dofile(MP.."/intllib.lua")
  4. --[[
  5. minetest.register_alias("castle:stonewall", "castle_masonry:stonewall")
  6. minetest.register_alias("castle:dungeon_stone", "castle_masonry:dungeon_stone")
  7. minetest.register_alias("castle:rubble", "castle_masonry:rubble")
  8. minetest.register_alias("castle:stonewall_corner", "castle_masonry:stonewall_corner")
  9. --]]
  10. minetest.register_node("castle_masonry:stonewall", {
  11. description = S("Castle Cobble"),
  12. drawtype = "normal",
  13. tiles = {"castle_stonewall.png"},
  14. --paramtype = "light",
  15. drop = "castle_masonry:stonewall",
  16. groups = utility.dig_groups("cobble", {stone=1,brick=1}),
  17. sunlight_propagates = false,
  18. sounds = default.node_sound_stone_defaults(),
  19. })
  20. minetest.register_node("castle_masonry:rubble", {
  21. description = S("Castle Rubble"),
  22. drawtype = "normal",
  23. tiles = {"castle_rubble.png"},
  24. --paramtype = "light",
  25. groups = utility.dig_groups("gravel", {falling_node=1}),
  26. sounds = default.node_sound_gravel_defaults(),
  27. })
  28. minetest.register_craft({
  29. type = "shapeless",
  30. output = "castle_masonry:stonewall",
  31. recipe = { "default:cobble", "default:dirt"},
  32. })
  33. minetest.register_craft({
  34. output = "castle_masonry:rubble",
  35. recipe = {
  36. {"castle_masonry:stonewall"},
  37. }
  38. })
  39. minetest.register_craft({
  40. type = "shapeless",
  41. output = "castle_masonry:rubble 2",
  42. recipe = {"default:gravel", "default:dirt"},
  43. })
  44. minetest.register_node("castle_masonry:stonewall_corner", {
  45. drawtype = "normal",
  46. --paramtype = "light",
  47. paramtype2 = "facedir",
  48. description = S("Castle Corner"),
  49. tiles = {"castle_corner_stonewall_tb.png^[transformR90",
  50. "castle_corner_stonewall_tb.png^[transformR180",
  51. "castle_corner_stonewall1.png",
  52. "castle_stonewall.png",
  53. "castle_stonewall.png",
  54. "castle_corner_stonewall2.png"},
  55. groups = utility.dig_groups("cobble", {stone=1, brick=1}),
  56. sounds = default.node_sound_stone_defaults(),
  57. })
  58. minetest.register_craft({
  59. output = "castle_masonry:stonewall_corner",
  60. recipe = {
  61. {"", "castle_masonry:stonewall"},
  62. {"castle_masonry:stonewall", "default:sandstone"},
  63. }
  64. })
  65. stairs.register_stair_and_slab("stonewall", "castle_masonry:stonewall",
  66. {cracky=3},
  67. {"castle_stonewall.png"},
  68. S("Castle Stonewall"),
  69. default.node_sound_stone_defaults()
  70. )
  71. stairs.register_stair_and_slab("rubble", "castle_masonry:rubble",
  72. {cracky=3},
  73. {"castle_rubble.png"},
  74. S("Castle Rubble"),
  75. default.node_sound_stone_defaults()
  76. )
  77. walls.register("masonry_stonewall", "Castle Cobble", "castle_stonewall.png",
  78. "castle_masonry:stonewall", default.node_sound_stone_defaults())
  79. --------------------------------------------------------------------------------------------------------------
  80. minetest.register_node("castle_masonry:dungeon_stone", {
  81. description = S("Dungeon Stone"),
  82. drawtype = "normal",
  83. tiles = {"castle_dungeon_stone.png"},
  84. groups = utility.dig_groups("brick", {stone=1, brick=1}),
  85. --paramtype = "light",
  86. sounds = default.node_sound_stone_defaults(),
  87. })
  88. minetest.register_craft({
  89. type = "shapeless",
  90. output = "castle_masonry:dungeon_stone 2",
  91. recipe = {"default:stonebrick", "default:obsidian"},
  92. })
  93. stairs.register_stair_and_slab("dungeon_stone", "castle_masonry:dungeon_stone",
  94. {cracky=2},
  95. {"castle_dungeon_stone.png"},
  96. S("Dungeon Stone"),
  97. default.node_sound_stone_defaults()
  98. )
  99. walls.register("masonry_dungeon", "Dungeon Stone", "castle_dungeon_stone.png",
  100. "castle_masonry:dungeon_stone", default.node_sound_stone_defaults())