init.lua 2.8 KB

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