blocks.lua 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. -----------slimeblocks----------------
  2. minetest.register_node("minerdream:slimeblock_green", {
  3. description = "Green block of slime",
  4. tiles = {"minerdream_slimeblock_green.png"},
  5. groups = {crumbly = 3,bouncy=75,fall_damage_add_percent=-50},
  6. sounds = default.node_sound_sand_defaults(),
  7. })
  8. minetest.register_node("minerdream:slimeblock_blue", {
  9. description = "Blue block of slime",
  10. tiles = {"minerdream_slimeblock_blue.png"},
  11. groups = {crumbly = 3,bouncy=80,fall_damage_add_percent=-55},
  12. sounds = default.node_sound_sand_defaults(),
  13. })
  14. minetest.register_node("minerdream:slimeblock_red", {
  15. description = "Red block of slime",
  16. tiles = {"minerdream_slimeblock_red.png"},
  17. groups = {crumbly = 3,bouncy=85,fall_damage_add_percent=-60},
  18. sounds = default.node_sound_sand_defaults(),
  19. })
  20. minetest.register_node("minerdream:slimeblock_yellow", {
  21. description = "Yellow block of slime",
  22. tiles = {"minerdream_slimeblock_yellow.png"},
  23. groups = {crumbly = 3,bouncy=90,fall_damage_add_percent=-65},
  24. sounds = default.node_sound_sand_defaults(),
  25. })
  26. minetest.register_node("minerdream:slimeblock_purple", {
  27. description = "Purple block of slime",
  28. tiles = {"minerdream_slimeblock_purple.png"},
  29. groups = {crumbly = 3,bouncy=95,fall_damage_add_percent=-70},
  30. sounds = default.node_sound_sand_defaults(),
  31. })
  32. minetest.register_node("minerdream:slimeblock_brown", {
  33. description = "Brown block of slime",
  34. tiles = {"minerdream_slimeblock_brown.png"},
  35. groups = {crumbly = 3,bouncy=100,fall_damage_add_percent=-75},
  36. sounds = default.node_sound_sand_defaults(),
  37. })
  38. -----------------desert ores-----------------
  39. minetest.register_node("minerdream:desertstone_with_richiron", {
  40. description = "Rich desert iron ore",
  41. tiles = {"default_desert_stone.png^minerdream_richiron_ore.png"},
  42. groups = {cracky = 2},
  43. drop = 'default:iron_lump 2',
  44. sounds = default.node_sound_stone_defaults(),
  45. })
  46. --------------marble---------------
  47. local function register_marble_intern(color,crack)
  48. minetest.register_node("minerdream:marble_"..color, {
  49. description = color.." marble",
  50. tiles = {"minerdream_marble_"..color..".png"},
  51. groups = {cracky = 3},
  52. sounds = default.node_sound_stone_defaults(),
  53. })
  54. end
  55. local function register_marble(color,crack)
  56. register_marble_intern(color,3)
  57. register_marble_intern(color.."_polished",3)
  58. register_marble_intern(color.."_brick",3)
  59. register_marble_intern(color.."_smallbrick",3)
  60. minetest.register_node("minerdream:pillar_marble_"..color.."_middle", {
  61. description = color.." marble pillar middle",
  62. tiles = {"minerdream_marble_"..color..".png"},
  63. groups = {cracky = 3},
  64. sounds = default.node_sound_stone_defaults(),
  65. drawtype = "nodebox",
  66. paramtype = "light",
  67. node_box = {
  68. type = "fixed",
  69. fixed = {
  70. {-0.375, -0.5, -0.1875, 0.375, 0.5, 0.1875}, -- NodeBox1
  71. {-0.1875, -0.5, -0.375, 0.1875, 0.5, 0.375}, -- NodeBox2
  72. {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, -- NodeBox3
  73. }
  74. }
  75. })
  76. minetest.register_node("minerdream:pillar_marble_"..color.."_middle", {
  77. description = color.." marble pillar middle",
  78. tiles = {"minerdream_marble_"..color..".png"},
  79. groups = {cracky = 3},
  80. sounds = default.node_sound_stone_defaults(),
  81. drawtype = "nodebox",
  82. paramtype = "light",
  83. node_box = {
  84. type = "fixed",
  85. fixed = {
  86. {-0.375, -0.5, -0.1875, 0.375, 0.5, 0.1875}, -- NodeBox1
  87. {-0.1875, -0.5, -0.375, 0.1875, 0.5, 0.375}, -- NodeBox2
  88. {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, -- NodeBox3
  89. }
  90. }
  91. })
  92. minetest.register_node("minerdream:pillar_marble_"..color.."_bottom", {
  93. description = color.." marble pillar bottom",
  94. tiles = {"minerdream_marble_"..color..".png"},
  95. groups = {cracky = 3},
  96. sounds = default.node_sound_stone_defaults(),
  97. drawtype = "nodebox",
  98. paramtype = "light",
  99. node_box = {
  100. type = "fixed",
  101. fixed = {
  102. {-0.375, -0.5, -0.1875, 0.375, 0.5, 0.1875}, -- NodeBox1
  103. {-0.1875, -0.5, -0.375, 0.1875, 0.5, 0.375}, -- NodeBox2
  104. {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, -- NodeBox3
  105. {-0.4375, -0.5, -0.4375, 0.4375, -0.375, 0.4375}, -- NodeBox4
  106. {-0.3125, -0.5, -0.5, 0.3125, -0.375, 0.5}, -- NodeBox5
  107. {-0.5, -0.5, -0.3125, 0.5, -0.375, 0.3125}, -- NodeBox6
  108. }
  109. }
  110. })
  111. minetest.register_node("minerdream:pillar_marble_"..color.."_top", {
  112. description = color.." marble pillar top",
  113. tiles = {"minerdream_marble_"..color..".png"},
  114. groups = {cracky = 3},
  115. sounds = default.node_sound_stone_defaults(),
  116. drawtype = "nodebox",
  117. paramtype = "light",
  118. node_box = {
  119. type = "fixed",
  120. fixed = {
  121. {-0.375, -0.5, -0.1875, 0.375, 0.5, 0.1875}, -- NodeBox1
  122. {-0.1875, -0.5, -0.375, 0.1875, 0.5, 0.375}, -- NodeBox2
  123. {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, -- NodeBox3
  124. {-0.4375, 0.375, -0.4375, 0.4375, 0.5, 0.4375}, -- NodeBox4
  125. {-0.3125, 0.375, -0.5, 0.3125, 0.5, 0.5}, -- NodeBox5
  126. {-0.5, 0.375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox6
  127. }
  128. }
  129. })
  130. minetest.register_node("minerdream:pillar_marble_"..color.."_both", {
  131. description = color.." marble pillar both-sided",
  132. tiles = {"minerdream_marble_"..color..".png"},
  133. groups = {cracky = 3},
  134. sounds = default.node_sound_stone_defaults(),
  135. drawtype = "nodebox",
  136. paramtype = "light",
  137. node_box = {
  138. type = "fixed",
  139. fixed = {
  140. {-0.375, -0.5, -0.1875, 0.375, 0.5, 0.1875}, -- NodeBox1
  141. {-0.1875, -0.5, -0.375, 0.1875, 0.5, 0.375}, -- NodeBox2
  142. {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, -- NodeBox3
  143. {-0.4375, 0.375, -0.4375, 0.4375, 0.5, 0.4375}, -- NodeBox4
  144. {-0.3125, 0.375, -0.5, 0.3125, 0.5, 0.5}, -- NodeBox5
  145. {-0.5, 0.375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox6
  146. {-0.4375, -0.5, -0.4375, 0.4375, -0.375, 0.4375}, -- NodeBox9
  147. {-0.3125, -0.5, -0.5, 0.3125, -0.375, 0.5}, -- NodeBox10
  148. {-0.5, -0.5, -0.3125, 0.5, -0.375, 0.3125}, -- NodeBox11
  149. }
  150. }
  151. })
  152. end
  153. register_marble("white",3)
  154. register_marble("pink",3)
  155. register_marble("red",3)
  156. register_marble("blue",3)
  157. register_marble("green",3)
  158. register_marble("black",3)
  159. ------------lapis-------------
  160. minetest.register_node("minerdream:lapislazuli_block", {
  161. description = "Lapis lazuli block",
  162. tiles = {"minerdream_lapislazuli_block.png"},
  163. groups = {cracky = 3},
  164. sounds = default.node_sound_stone_defaults(),
  165. })
  166. minetest.register_node("minerdream:lapislazuli_goldblock", {
  167. description = "Lapis lazuli-gold block #1",
  168. tiles = {"minerdream_lapislazuli_goldblock.png"},
  169. groups = {cracky = 3},
  170. sounds = default.node_sound_stone_defaults(),
  171. })
  172. minetest.register_node("minerdream:lapislazuli_goldblock_a", {
  173. description = "Lapis lazuli-gold block #2",
  174. tiles = {"minerdream_lapislazuli_goldblock_a.png"},
  175. groups = {cracky = 3},
  176. sounds = default.node_sound_stone_defaults(),
  177. })
  178. minetest.register_node("minerdream:lapislazuli_goldblock_b", {
  179. description = "Lapis lazuli-gold block #3",
  180. tiles = {"minerdream_lapislazuli_goldblock_b.png"},
  181. groups = {cracky = 3},
  182. sounds = default.node_sound_stone_defaults(),
  183. })
  184. minetest.register_node("minerdream:lapislazuli_goldblock_c", {
  185. description = "Lapis lazuli-gold block #4",
  186. tiles = {"minerdream_lapislazuli_goldblock_c.png"},
  187. groups = {cracky = 3},
  188. sounds = default.node_sound_stone_defaults(),
  189. })
  190. minetest.register_node("minerdream:lapislazuli_goldblock_d", {
  191. description = "Lapis lazuli-gold block #5",
  192. tiles = {"minerdream_lapislazuli_goldblock_d.png"},
  193. groups = {cracky = 3},
  194. sounds = default.node_sound_stone_defaults(),
  195. })
  196. minetest.register_node("minerdream:lapislazuli_brick", {
  197. description = "Lapis lazuli bricks",
  198. tiles = {"minerdream_lapislazuli_brick.png"},
  199. groups = {cracky = 3},
  200. sounds = default.node_sound_stone_defaults(),
  201. })
  202. minetest.register_node("minerdream:lapislazuli_smallbrick", {
  203. description = "Small lapis lazuli bricks",
  204. tiles = {"minerdream_lapislazuli_smallbrick.png"},
  205. groups = {cracky = 3},
  206. sounds = default.node_sound_stone_defaults(),
  207. })
  208. minetest.register_node("minerdream:lapislazuligold_brick", {
  209. description = "lapis lazuli-gold bricks #1",
  210. tiles = {"minerdream_lapislazuligold_brick.png"},
  211. groups = {cracky = 3},
  212. sounds = default.node_sound_stone_defaults(),
  213. })
  214. minetest.register_node("minerdream:lapislazuligold_brick_a", {
  215. description = "lapis lazuli-gold bricks #2",
  216. tiles = {"minerdream_lapislazuligold_brick_a.png"},
  217. groups = {cracky = 3},
  218. sounds = default.node_sound_stone_defaults(),
  219. })
  220. -------------gemstones---------------
  221. -- from original version by daviddoesminetest
  222. minetest.register_node("minerdream:desertstone_with_coal", {
  223. description = "Desert coal ore",
  224. tiles = {"default_desert_stone.png^default_mineral_coal.png"},
  225. groups = {cracky = 3},
  226. drop = 'default:coal_lump 1',
  227. sounds = default.node_sound_stone_defaults(),
  228. })