nodes.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. minetest.register_node("stoneworld:meat_rock", {
  2. description = "Basaltic Rubble With Unidentified Meat",
  3. tiles = {"darkage_basalt_rubble.png^rackstone_meat.png"},
  4. groups = utility.dig_groups("cobble"),
  5. sounds = default.node_sound_stone_defaults(),
  6. drop = "mobs:naraxen_meat",
  7. silverpick_drop = true,
  8. place_param2 = 10,
  9. })
  10. minetest.register_node("stoneworld:meat_stone", {
  11. description = "Basaltic Stone With Unidentified Meat",
  12. tiles = {"darkage_basalt.png^rackstone_meat.png"},
  13. groups = utility.dig_groups("stone"),
  14. sounds = default.node_sound_stone_defaults(),
  15. drop = "mobs:naraxen_meat_raw",
  16. silverpick_drop = true,
  17. place_param2 = 10,
  18. })
  19. minetest.register_node("stoneworld:basalt_with_gold", {
  20. description = "Gold Ore",
  21. tiles = {"darkage_basalt.png^default_mineral_gold.png"},
  22. groups = utility.dig_groups("mineral", {ore = 1}),
  23. drop = "default:gold_lump",
  24. _tnt_drop = {
  25. "default:gold_lump",
  26. "dusts:gold 3",
  27. },
  28. silverpick_drop = true,
  29. sounds = default.node_sound_stone_defaults(),
  30. place_param2 = 10,
  31. })
  32. minetest.register_node("stoneworld:basalt_with_diamond", {
  33. description = "Diamond Deposit",
  34. tiles = {"darkage_basalt.png^default_mineral_diamond.png"},
  35. groups = utility.dig_groups("hardmineral"),
  36. drop = "default:diamond",
  37. _tnt_drop = {
  38. 'default:diamond',
  39. 'dusts:diamond_shard 3',
  40. },
  41. silverpick_drop = true,
  42. sounds = default.node_sound_stone_defaults(),
  43. place_param2 = 10,
  44. })
  45. minetest.register_node("stoneworld:basalt_with_mese", {
  46. description = "Mese Ore",
  47. tiles = {"darkage_basalt.png^default_mineral_mese.png"},
  48. groups = utility.dig_groups("hardmineral", {melts = 1}),
  49. drop = {
  50. max_items = 2,
  51. items = {
  52. {items = {'mobs:flame_bolt'}, rarity = 32},
  53. {items = {'default:mese_crystal'}}
  54. }
  55. },
  56. _tnt_drop = "default:mese_crystal_fragment",
  57. silverpick_drop = true,
  58. sounds = default.node_sound_stone_defaults(),
  59. -- Mese in stone reacts badly to lava.
  60. on_melt = function(pos, other)
  61. minetest.after(0, function()
  62. tnt.boom(pos, {
  63. radius = 4,
  64. ignore_protection = false,
  65. ignore_on_blast = false,
  66. damage_radius = 6,
  67. disable_drops = true,
  68. })
  69. end)
  70. end,
  71. })
  72. minetest.register_node("stoneworld:basalt_with_iron", {
  73. description = "Iron Ore",
  74. tiles = {"darkage_basalt.png^default_mineral_iron.png"},
  75. groups = utility.dig_groups("mineral", {ore = 1}),
  76. drop = 'default:iron_lump',
  77. _tnt_drop = 'default:iron_lump 2',
  78. silverpick_drop = true,
  79. sounds = default.node_sound_stone_defaults(),
  80. place_param2 = 10,
  81. })
  82. minetest.register_node("stoneworld:basalt_with_coal", {
  83. description = "Coal Deposit",
  84. tiles = {"darkage_basalt.png^stoneworld_mineral_coal.png"},
  85. -- Cannot be flammable (although I would like it to be)
  86. -- because that interferes with TNT mining (the TNT replaces
  87. -- all coal with flame instead of dropping it).
  88. groups = utility.dig_groups("mineral"),
  89. drop = 'default:coal_lump',
  90. silverpick_drop = true,
  91. sounds = default.node_sound_stone_defaults(),
  92. place_param2 = 10,
  93. })
  94. minetest.register_node("stoneworld:basalt_with_dauth", {
  95. description = "Dauth Deposit",
  96. tiles = {"darkage_basalt.png^stoneworld_mineral_coal.png"},
  97. -- Cannot be flammable (although I would like it to be)
  98. -- because that interferes with TNT mining (the TNT replaces
  99. -- all coal with flame instead of dropping it).
  100. groups = utility.dig_groups("mineral"),
  101. drop = 'rackstone:dauth_lump',
  102. silverpick_drop = true,
  103. sounds = default.node_sound_stone_defaults(),
  104. place_param2 = 10,
  105. })
  106. minetest.register_node("stoneworld:basalt_with_copper", {
  107. description = "Copper Ore",
  108. tiles = {"darkage_basalt.png^default_mineral_copper.png"},
  109. groups = utility.dig_groups("mineral", {ore = 1}),
  110. drop = 'default:copper_lump',
  111. _tnt_drop = 'default:copper_lump 2',
  112. silverpick_drop = true,
  113. sounds = default.node_sound_stone_defaults(),
  114. place_param2 = 10,
  115. })
  116. minetest.register_node("stoneworld:basalt_with_tin", {
  117. description = "Tin Ore",
  118. tiles = {"darkage_basalt.png^moreores_mineral_tin2.png"},
  119. groups = utility.dig_groups("mineral", {ore=1}),
  120. sounds = default.node_sound_stone_defaults(),
  121. drop = "moreores:tin_lump",
  122. _tnt_drop = "moreores:tin_lump 2",
  123. silverpick_drop = true,
  124. place_param2 = 10,
  125. })