space_nodes.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. -- Nodes
  2. minetest.register_node(":asteroid:stone", {
  3. description = "Asteroid Stone",
  4. tiles = {"asteroid_stone.png"},
  5. is_ground_content = false,
  6. drop = {
  7. max_items = 2,
  8. items = {
  9. {items = {'epic:float_crystal_shard'}, rarity = 25,},
  10. {items = {'asteroid:cobble'}},
  11. }
  12. },
  13. groups = {cracky = 3, level = 4},
  14. sounds = default.node_sound_stone_defaults(),
  15. })
  16. minetest.register_node(":asteroid:stone_brick", {
  17. description = "Asteroid Stone Brick",
  18. tiles = {"asteroid_stone_brick.png"},
  19. groups = {cracky = 3, level = 4},
  20. sounds = default.node_sound_stone_defaults(),
  21. })
  22. minetest.register_node(":asteroid:redstone", {
  23. description = "Asteroid Stone",
  24. tiles = {"asteroid_redstone.png"},
  25. is_ground_content = false,
  26. drop = {
  27. max_items = 2,
  28. items = {
  29. {items = {'epic:float_crystal_shard'}, rarity = 25,},
  30. {items = {'asteroid:redcobble'}},
  31. }
  32. },
  33. groups = {cracky = 3, level = 4},
  34. sounds = default.node_sound_stone_defaults(),
  35. })
  36. minetest.register_node(":asteroid:redstone_brick", {
  37. description = "Asteroid Stone Brick",
  38. tiles = {"asteroid_redstone_brick.png"},
  39. groups = {cracky = 3, level = 4},
  40. sounds = default.node_sound_stone_defaults(),
  41. })
  42. minetest.register_node(":asteroid:cobble", {
  43. description = "Asteroid Cobble",
  44. tiles = {"asteroid_cobble.png"},
  45. is_ground_content = false,
  46. groups = {cracky = 3},
  47. sounds = default.node_sound_stone_defaults(),
  48. })
  49. minetest.register_node(":asteroid:redcobble", {
  50. description = "Asteroid Cobble",
  51. tiles = {"asteroid_redcobble.png"},
  52. is_ground_content = false,
  53. groups = {cracky = 3},
  54. sounds = default.node_sound_stone_defaults(),
  55. })
  56. minetest.register_node(":asteroid:gravel", {
  57. description = "Asteroid Gravel",
  58. tiles = {"asteroid_gravel.png"},
  59. is_ground_content = false,
  60. groups = {crumbly = 2},
  61. sounds = default.node_sound_dirt_defaults({
  62. footstep = {name = "default_gravel_footstep", gain = 0.2},
  63. }),
  64. })
  65. minetest.register_node(":asteroid:redgravel", {
  66. description = "Asteroid Gravel",
  67. tiles = {"asteroid_redgravel.png"},
  68. is_ground_content = false,
  69. groups = {crumbly = 2},
  70. sounds = default.node_sound_dirt_defaults({
  71. footstep = {name = "default_gravel_footstep", gain = 0.2},
  72. }),
  73. })
  74. minetest.register_node(":asteroid:dust", {
  75. description = "Asteroid Dust",
  76. tiles = {"asteroid_dust.png"},
  77. is_ground_content = false,
  78. groups = {crumbly = 3},
  79. sounds = default.node_sound_dirt_defaults({
  80. footstep = {name = "default_gravel_footstep", gain = 0.1},
  81. }),
  82. })
  83. minetest.register_node(":asteroid:reddust", {
  84. description = "Asteroid Dust",
  85. tiles = {"asteroid_reddust.png"},
  86. is_ground_content = false,
  87. groups = {crumbly = 3},
  88. sounds = default.node_sound_dirt_defaults({
  89. footstep = {name = "default_gravel_footstep", gain = 0.1},
  90. }),
  91. })
  92. minetest.register_node(":asteroid:ironore", {
  93. description = "Asteroid Iron Ore",
  94. tiles = {"asteroid_redstone.png^default_mineral_iron.png"},
  95. is_ground_content = false,
  96. groups = {cracky = 2, level = 4},
  97. drop = "default:iron_lump",
  98. sounds = default.node_sound_stone_defaults(),
  99. })
  100. minetest.register_node(":asteroid:copperore", {
  101. description = "Asteroid Copper Ore",
  102. tiles = {"asteroid_redstone.png^default_mineral_copper.png"},
  103. is_ground_content = false,
  104. groups = {cracky = 2, level = 4},
  105. drop = "default:copper_lump",
  106. sounds = default.node_sound_stone_defaults(),
  107. })
  108. minetest.register_node(":asteroid:goldore", {
  109. description = "Asteroid Gold Ore",
  110. tiles = {"asteroid_redstone.png^default_mineral_gold.png"},
  111. is_ground_content = false,
  112. groups = {cracky = 2, level = 4},
  113. drop = "default:gold_lump",
  114. sounds = default.node_sound_stone_defaults(),
  115. })
  116. minetest.register_node(":asteroid:diamondore", {
  117. description = "Asteroid Diamond Ore",
  118. tiles = {"asteroid_redstone.png^default_mineral_diamond.png"},
  119. is_ground_content = false,
  120. groups = {cracky = 1, level = 4},
  121. drop = "default:diamond",
  122. sounds = default.node_sound_stone_defaults(),
  123. })
  124. minetest.register_node(":asteroid:meseore", {
  125. description = "Asteroid Mese Ore",
  126. tiles = {"asteroid_redstone.png^default_mineral_mese.png"},
  127. is_ground_content = false,
  128. groups = {cracky = 1, level = 4},
  129. drop = "default:mese_crystal",
  130. sounds = default.node_sound_stone_defaults(),
  131. })
  132. minetest.register_node(":asteroid:atmos", {
  133. description = "Comet Atmosphere",
  134. drawtype = "glasslike",
  135. tiles = {"asteroid_atmos.png"},
  136. paramtype = "light",
  137. sunlight_propagates = true,
  138. walkable = false,
  139. pointable = false,
  140. diggable = false,
  141. buildable_to = true,
  142. is_ground_content = false,
  143. use_texture_alpha = true,
  144. post_effect_color = {a = 31, r = 241, g = 248, b = 255},
  145. groups = {not_in_creative_inventory = 1},
  146. })