init.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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_craftitem("alatro:ingot", {
  44. description = "Alatro Ingot",
  45. inventory_image = "gloopores_alatro_ingot.png",
  46. groups = {ingot = 1},
  47. })
  48. minetest.register_craft({
  49. type = "grinding",
  50. output = 'alatro:dust',
  51. recipe = 'alatro:ingot',
  52. time = 10,
  53. })
  54. minetest.register_node("alatro:block", {
  55. description = "Alatro Block",
  56. tiles = {"gloopores_alatro_block.png"},
  57. is_ground_content = false,
  58. groups = utility.dig_groups("block"),
  59. sounds = default.node_sound_metal_defaults(),
  60. })
  61. stairs.register_stair_and_slab(
  62. "alatro_block",
  63. "alatro:block",
  64. {cracky = 1},
  65. {"gloopores_alatro_block.png"},
  66. "Alatro Block",
  67. default.node_sound_metal_defaults()
  68. )
  69. minetest.register_craft({
  70. output = "alatro:block",
  71. recipe = {
  72. {"alatro:ingot", "alatro:ingot", "alatro:ingot"},
  73. {"alatro:ingot", "alatro:ingot", "alatro:ingot"},
  74. {"alatro:ingot", "alatro:ingot", "alatro:ingot"},
  75. },
  76. })
  77. minetest.register_craft({
  78. type = "shapeless",
  79. output = "alatro:ingot 9",
  80. recipe = {"alatro:block"},
  81. })
  82. minetest.register_node("alatro:glass", {
  83. description = "Alatro Glass",
  84. drawtype = "glasslike_framed_optional",
  85. tiles = {"glooptest_alatro_crystal_glass.png"},
  86. paramtype = "light",
  87. sunlight_propagates = true,
  88. is_ground_content = false,
  89. groups = utility.dig_groups("glass"),
  90. sounds = default.node_sound_glass_defaults(),
  91. silverpick_drop = true,
  92. drop = {
  93. max_items = 2,
  94. items = {
  95. {
  96. items = {"vessels:glass_fragments", "alatro:dust"},
  97. rarity = 1,
  98. },
  99. }
  100. },
  101. })
  102. minetest.register_craft({
  103. type = "alloying",
  104. output = "alatro:glass",
  105. recipe = {"default:glass", "alatro:ingot"},
  106. time = 6,
  107. })