init.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. -- Walls/stairs registered in 'mr_extra'.
  2. -- This prevents potential deps load-order problems.
  3. if not minetest.global_exists("morerocks") then morerocks = {} end
  4. morerocks.modpath = minetest.get_modpath("morerocks")
  5. minetest.register_node("morerocks:serpentine", {
  6. description = "Serpentine",
  7. tiles = {"morerocks_serpentine.png"},
  8. groups = utility.dig_groups("hardstone"),
  9. sounds = default.node_sound_stone_defaults(),
  10. })
  11. minetest.register_node("morerocks:marble_pink", {
  12. description = "Pink Marble",
  13. tiles = {"morerocks_marble_stone_pink.png"},
  14. groups = utility.dig_groups("hardstone"),
  15. sounds = default.node_sound_stone_defaults(),
  16. })
  17. minetest.register_node("morerocks:marble_white", {
  18. description = "White Marble",
  19. tiles = {"morerocks_marble_stone_white.png"},
  20. groups = utility.dig_groups("hardstone"),
  21. sounds = default.node_sound_stone_defaults(),
  22. })
  23. minetest.register_node("morerocks:marble", {
  24. description = "Marble",
  25. tiles = {"morerocks_marble_stone.png"},
  26. groups = utility.dig_groups("hardstone"),
  27. sounds = default.node_sound_stone_defaults(),
  28. })
  29. minetest.register_alias("technic:marble", "morerocks:marble")
  30. minetest.register_node("morerocks:marble_bricks", {
  31. description = "Marble Bricks",
  32. tiles = {"morerocks_marble_bricks.png"},
  33. groups = utility.dig_groups("brick"),
  34. sounds = default.node_sound_stone_defaults(),
  35. })
  36. minetest.register_alias("technic:marble_bricks", "morerocks:marble_bricks")
  37. minetest.register_craft({
  38. output = "morerocks:marble_bricks 4",
  39. recipe = {
  40. {"morerocks:marble", "morerocks:marble"},
  41. {"morerocks:marble", "morerocks:marble"},
  42. }
  43. })
  44. minetest.register_node("morerocks:granite", {
  45. description = "Granite",
  46. tiles = {"morerocks_granite_stone.png"},
  47. groups = utility.dig_groups("hardstone", {stone = 1}),
  48. sounds = default.node_sound_stone_defaults(),
  49. })
  50. minetest.register_alias("technic:granite", "morerocks:granite")
  51. local spread = {x=4, y=2, z=4}
  52. local scarcity = 20*20*20
  53. local size = 5
  54. oregen.register_ore({
  55. ore_type = "blob",
  56. ore = "morerocks:marble",
  57. wherein = {"default:stone"},
  58. clust_scarcity = scarcity,
  59. clust_size = size,
  60. y_min = -31000,
  61. y_max = -1000,
  62. noise_threshold = 0.0,
  63. noise_params = {
  64. offset = 0.5,
  65. scale = 0.2,
  66. spread = spread,
  67. seed = 8211,
  68. octaves = 1,
  69. persist = 0.0
  70. },
  71. })
  72. oregen.register_ore({
  73. ore_type = "blob",
  74. ore = "morerocks:marble_pink",
  75. wherein = {"default:stone"},
  76. clust_scarcity = scarcity,
  77. clust_size = size,
  78. y_min = -31000,
  79. y_max = -1000,
  80. noise_threshold = 0.0,
  81. noise_params = {
  82. offset = 0.5,
  83. scale = 0.2,
  84. spread = spread,
  85. seed = 48191,
  86. octaves = 1,
  87. persist = 0.0
  88. },
  89. })
  90. oregen.register_ore({
  91. ore_type = "blob",
  92. ore = "morerocks:marble_white",
  93. wherein = {"default:stone"},
  94. clust_scarcity = scarcity,
  95. clust_size = size,
  96. y_min = -31000,
  97. y_max = -1000,
  98. noise_threshold = 0.0,
  99. noise_params = {
  100. offset = 0.5,
  101. scale = 0.2,
  102. spread = spread,
  103. seed = 7382,
  104. octaves = 1,
  105. persist = 0.0
  106. },
  107. })
  108. oregen.register_ore({
  109. ore_type = "blob",
  110. ore = "morerocks:granite",
  111. wherein = {"default:stone"},
  112. clust_scarcity = scarcity,
  113. clust_size = size,
  114. y_min = -31000,
  115. y_max = -1000,
  116. noise_threshold = 0.0,
  117. noise_params = {
  118. offset = 0.5,
  119. scale = 0.2,
  120. spread = spread,
  121. seed = 8281,
  122. octaves = 1,
  123. persist = 0.0
  124. },
  125. })
  126. oregen.register_ore({
  127. ore_type = "blob",
  128. ore = "morerocks:serpentine",
  129. wherein = {"default:stone"},
  130. clust_scarcity = scarcity,
  131. clust_size = size,
  132. y_min = -31000,
  133. y_max = -1000,
  134. noise_threshold = 0.0,
  135. noise_params = {
  136. offset = 0.5,
  137. scale = 0.2,
  138. spread = spread,
  139. seed = 271,
  140. octaves = 1,
  141. persist = 0.0
  142. },
  143. })
  144. --[[
  145. oregen.register_ore({
  146. ore_type = "scatter",
  147. ore = "morerocks:serpentine",
  148. wherein = "default:stone",
  149. clust_scarcity = 11 * 11 * 11,
  150. clust_num_ores = 5,
  151. clust_size = 2,
  152. y_min = -31000,
  153. y_max = MAPGEN_SEA_LEVEL,
  154. })
  155. --]]