init.lua 2.9 KB

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