init.lua 3.4 KB

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