stone_wall.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. type = "shapeless",
  35. output = "castle_masonry:stonewall",
  36. recipe = { "default:cobble", "darkage:darkdirt"},
  37. })
  38. minetest.register_craft({
  39. output = "castle_masonry:rubble",
  40. recipe = {
  41. {"castle_masonry:stonewall"},
  42. }
  43. })
  44. minetest.register_craft({
  45. type = "shapeless",
  46. output = "castle_masonry:rubble 2",
  47. recipe = {"default:gravel", "default:dirt"},
  48. })
  49. minetest.register_craft({
  50. type = "shapeless",
  51. output = "castle_masonry:rubble 2",
  52. recipe = {"default:gravel", "darkage:darkdirt"},
  53. })
  54. minetest.register_node("castle_masonry:stonewall_corner", {
  55. drawtype = "normal",
  56. --paramtype = "light",
  57. paramtype2 = "facedir",
  58. description = S("Castle Corner"),
  59. tiles = {"castle_corner_stonewall_tb.png^[transformR90",
  60. "castle_corner_stonewall_tb.png^[transformR180",
  61. "castle_corner_stonewall1.png",
  62. "castle_stonewall.png",
  63. "castle_stonewall.png",
  64. "castle_corner_stonewall2.png"},
  65. groups = utility.dig_groups("cobble", {stone=1, brick=1}),
  66. sounds = default.node_sound_stone_defaults(),
  67. })
  68. minetest.register_craft({
  69. output = "castle_masonry:stonewall_corner",
  70. recipe = {
  71. {"", "castle_masonry:stonewall"},
  72. {"castle_masonry:stonewall", "default:sandstone"},
  73. }
  74. })
  75. stairs.register_stair_and_slab("stonewall", "castle_masonry:stonewall",
  76. {cracky=3},
  77. {"castle_stonewall.png"},
  78. S("Castle Stonewall"),
  79. default.node_sound_stone_defaults()
  80. )
  81. stairs.register_stair_and_slab("rubble", "castle_masonry:rubble",
  82. {cracky=3},
  83. {"castle_rubble.png"},
  84. S("Castle Rubble"),
  85. default.node_sound_stone_defaults()
  86. )
  87. walls.register("masonry_stonewall", "Castle Cobble", "castle_stonewall.png",
  88. "castle_masonry:stonewall", default.node_sound_stone_defaults())
  89. --------------------------------------------------------------------------------------------------------------
  90. minetest.register_node("castle_masonry:dungeon_stone", {
  91. description = S("Dungeon Stone"),
  92. drawtype = "normal",
  93. tiles = {"castle_dungeon_stone.png"},
  94. groups = utility.dig_groups("brick", {stone=1, brick=1}),
  95. --paramtype = "light",
  96. sounds = default.node_sound_stone_defaults(),
  97. })
  98. minetest.register_craft({
  99. type = "shapeless",
  100. output = "castle_masonry:dungeon_stone 2",
  101. recipe = {"default:stonebrick", "default:obsidian"},
  102. })
  103. stairs.register_stair_and_slab("dungeon_stone", "castle_masonry:dungeon_stone",
  104. {cracky=2},
  105. {"castle_dungeon_stone.png"},
  106. S("Dungeon Stone"),
  107. default.node_sound_stone_defaults()
  108. )
  109. walls.register("masonry_dungeon", "Dungeon Stone", "castle_dungeon_stone.png",
  110. "castle_masonry:dungeon_stone", default.node_sound_stone_defaults())