init.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. minetest.register_node("talinite:ore", {
  2. description = "Talinite Ore",
  3. tiles = {"default_stone.png^gloopores_mineral_talinite.png"},
  4. groups = utility.dig_groups("hardmineral", {ore = 1}),
  5. drop = "talinite:lump",
  6. _tnt_drop = {
  7. "talinite:lump",
  8. "talinite:dust",
  9. },
  10. silverpick_drop = true,
  11. --light_source = 6, -- This ore glows. (Buggy? Does not update light.)
  12. sounds = default.node_sound_stone_defaults(),
  13. place_param2 = 10,
  14. })
  15. minetest.register_node("talinite:desert_ore", {
  16. description = "Desert Talinite Ore",
  17. tiles = {"default_desert_stone.png^gloopores_mineral_talinite.png"},
  18. groups = utility.dig_groups("hardmineral", {ore = 1}),
  19. drop = "talinite:dust",
  20. _tnt_drop = {
  21. "talinite:lump",
  22. },
  23. silverpick_drop = true,
  24. --light_source = 6, -- This ore glows. (Buggy? Does not update light.)
  25. sounds = default.node_sound_stone_defaults(),
  26. place_param2 = 10,
  27. })
  28. oregen.register_ore({
  29. ore_type = "scatter",
  30. ore = "talinite:ore",
  31. wherein = "default:stone",
  32. clust_scarcity = 8*8*8,
  33. clust_num_ores = 2,
  34. clust_size = 3,
  35. y_min = -50,
  36. y_max = 300,
  37. })
  38. minetest.register_craftitem("talinite:lump", {
  39. description = "Talinite Lump",
  40. inventory_image = "gloopores_talinite_lump.png",
  41. })
  42. minetest.register_craft({
  43. type = "cooking",
  44. output = "talinite:ingot",
  45. recipe = "talinite:lump",
  46. })
  47. minetest.register_craftitem("talinite:dust", {
  48. description = "Talinite Dust",
  49. inventory_image = "technic_talinite_dust.png"
  50. })
  51. minetest.register_craft({
  52. type = "cooking",
  53. output = "talinite:ingot",
  54. recipe = "talinite:dust",
  55. })
  56. minetest.register_craft({
  57. type = "grinding",
  58. output = 'talinite:dust 2',
  59. recipe = 'talinite:lump',
  60. time = 10,
  61. })
  62. minetest.register_craft({
  63. type = "anvil",
  64. output = 'talinite:dust 2',
  65. recipe = 'talinite:lump',
  66. })
  67. minetest.register_craftitem("talinite:ingot", {
  68. description = "Talinite Ingot",
  69. inventory_image = "gloopores_talinite_ingot.png",
  70. groups = {ingot = 1},
  71. })
  72. minetest.register_craft({
  73. type = "grinding",
  74. output = 'talinite:dust',
  75. recipe = 'talinite:ingot',
  76. time = 10,
  77. })
  78. minetest.register_node("talinite:block", {
  79. description = "Talinite Block",
  80. tiles = {"gloopores_talinite_block.png"},
  81. is_ground_content = false,
  82. groups = utility.dig_groups("block"),
  83. light_source = 14,
  84. sounds = default.node_sound_metal_defaults(),
  85. })
  86. stairs.register_stair_and_slab(
  87. "talinite_block",
  88. "talinite:block",
  89. {cracky = 1},
  90. {"gloopores_talinite_block.png"},
  91. "Talinite Block",
  92. default.node_sound_metal_defaults()
  93. )
  94. minetest.register_craft({
  95. output = "talinite:block",
  96. recipe = {
  97. {"talinite:ingot", "talinite:ingot", "talinite:ingot"},
  98. {"talinite:ingot", "talinite:ingot", "talinite:ingot"},
  99. {"talinite:ingot", "talinite:ingot", "talinite:ingot"},
  100. },
  101. })
  102. minetest.register_craft({
  103. type = "shapeless",
  104. output = "talinite:ingot 9",
  105. recipe = {"talinite:block"},
  106. })
  107. minetest.register_node("talinite:glass", {
  108. description = "Talinite Glass",
  109. drawtype = "glasslike_framed_optional",
  110. tiles = {"glooptest_talinite_crystal_glass.png"},
  111. paramtype = "light",
  112. sunlight_propagates = true,
  113. light_source = 10,
  114. is_ground_content = false,
  115. groups = utility.dig_groups("glass"),
  116. sounds = default.node_sound_glass_defaults(),
  117. silverpick_drop = true,
  118. node_dig_prediction = "",
  119. drop = {
  120. max_items = 2,
  121. items = {
  122. {
  123. items = {"vessels:glass_fragments", "talinite:dust"},
  124. rarity = 1,
  125. },
  126. }
  127. },
  128. })
  129. minetest.register_craft({
  130. type = "alloying",
  131. output = "talinite:glass",
  132. recipe = {"default:glass", "talinite:ingot"},
  133. time = 6,
  134. })