init.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. minetest.register_node("alatro:ore", {
  2. description = "Alatro Ore",
  3. tiles = {"default_stone.png^gloopores_mineral_alatro.png"},
  4. groups = utility.dig_groups("mineral", {ore=1}),
  5. drop = "alatro:lump",
  6. silverpick_drop = true,
  7. sounds = default.node_sound_stone_defaults(),
  8. place_param2 = 10,
  9. })
  10. oregen.register_ore({
  11. ore_type = "scatter",
  12. ore = "alatro: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("alatro:lump", {
  21. description = "Alatro Lump",
  22. inventory_image = "gloopores_alatro_lump.png",
  23. })
  24. minetest.register_craft({
  25. type = "cooking",
  26. output = "alatro:ingot",
  27. recipe = "alatro:lump",
  28. })
  29. minetest.register_craftitem("alatro:dust", {
  30. description = "Alatro Dust",
  31. inventory_image = "technic_alatro_dust.png"
  32. })
  33. minetest.register_craft({
  34. type = "cooking",
  35. output = "alatro:ingot",
  36. recipe = "alatro:dust",
  37. })
  38. minetest.register_craft({
  39. type = "grinding",
  40. output = 'alatro:dust 2',
  41. recipe = 'alatro:lump',
  42. time = 10,
  43. })
  44. minetest.register_craft({
  45. type = "anvil",
  46. output = 'alatro:dust 2',
  47. recipe = 'alatro:lump',
  48. })
  49. minetest.register_craftitem("alatro:ingot", {
  50. description = "Alatro Ingot",
  51. inventory_image = "gloopores_alatro_ingot.png",
  52. groups = {ingot = 1},
  53. })
  54. minetest.register_craft({
  55. type = "grinding",
  56. output = 'alatro:dust',
  57. recipe = 'alatro:ingot',
  58. time = 10,
  59. })
  60. minetest.register_node("alatro:block", {
  61. description = "Alatro Block",
  62. tiles = {"gloopores_alatro_block.png"},
  63. is_ground_content = false,
  64. groups = utility.dig_groups("block"),
  65. sounds = default.node_sound_metal_defaults(),
  66. })
  67. stairs.register_stair_and_slab(
  68. "alatro_block",
  69. "alatro:block",
  70. {cracky = 1},
  71. {"gloopores_alatro_block.png"},
  72. "Alatro Block",
  73. default.node_sound_metal_defaults()
  74. )
  75. minetest.register_craft({
  76. output = "alatro:block",
  77. recipe = {
  78. {"alatro:ingot", "alatro:ingot", "alatro:ingot"},
  79. {"alatro:ingot", "alatro:ingot", "alatro:ingot"},
  80. {"alatro:ingot", "alatro:ingot", "alatro:ingot"},
  81. },
  82. })
  83. minetest.register_craft({
  84. type = "shapeless",
  85. output = "alatro:ingot 9",
  86. recipe = {"alatro:block"},
  87. })
  88. minetest.register_node("alatro:glass", {
  89. description = "Alatro Glass",
  90. drawtype = "glasslike_framed_optional",
  91. tiles = {"glooptest_alatro_crystal_glass.png"},
  92. paramtype = "light",
  93. sunlight_propagates = true,
  94. is_ground_content = false,
  95. groups = utility.dig_groups("glass"),
  96. sounds = default.node_sound_glass_defaults(),
  97. silverpick_drop = true,
  98. drop = {
  99. max_items = 2,
  100. items = {
  101. {
  102. items = {"vessels:glass_fragments", "alatro:dust"},
  103. rarity = 1,
  104. },
  105. }
  106. },
  107. })
  108. minetest.register_craft({
  109. type = "alloying",
  110. output = "alatro:glass",
  111. recipe = {"default:glass", "alatro:ingot"},
  112. time = 6,
  113. })