init.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. minetest.register_node("akalin:ore", {
  2. description = "Akalin Ore",
  3. tiles = {"default_stone.png^gloopores_mineral_akalin.png"},
  4. groups = utility.dig_groups("mineral", {ore = 1}),
  5. drop = "akalin:lump",
  6. silverpick_drop = true,
  7. sounds = default.node_sound_stone_defaults(),
  8. })
  9. oregen.register_ore({
  10. ore_type = "scatter",
  11. ore = "akalin: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("akalin:lump", {
  20. description = "Akalin Lump",
  21. inventory_image = "gloopores_akalin_lump.png",
  22. })
  23. minetest.register_craft({
  24. type = "cooking",
  25. output = "akalin:ingot",
  26. recipe = "akalin:lump",
  27. })
  28. minetest.register_craftitem("akalin:dust", {
  29. description = "Akalin Dust",
  30. inventory_image = "technic_akalin_dust.png"
  31. })
  32. minetest.register_craft({
  33. type = "cooking",
  34. output = "akalin:ingot",
  35. recipe = "akalin:dust",
  36. })
  37. minetest.register_craft({
  38. type = "grinding",
  39. output = 'akalin:dust 2',
  40. recipe = 'akalin:lump',
  41. time = 10,
  42. })
  43. minetest.register_craft({
  44. type = "anvil",
  45. output = 'akalin:dust 2',
  46. recipe = 'akalin:lump',
  47. })
  48. minetest.register_craftitem("akalin:ingot", {
  49. description = "Akalin Ingot",
  50. inventory_image = "gloopores_akalin_ingot.png",
  51. groups = {ingot = 1},
  52. })
  53. minetest.register_craft({
  54. type = "grinding",
  55. output = 'akalin:dust',
  56. recipe = 'akalin:ingot',
  57. time = 10,
  58. })
  59. minetest.register_node("akalin:block", {
  60. description = "Akalin Block",
  61. tiles = {"gloopores_akalin_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. "akalin_block",
  68. "akalin:block",
  69. {cracky = 1},
  70. {"gloopores_akalin_block.png"},
  71. "Akalin Block",
  72. default.node_sound_metal_defaults()
  73. )
  74. minetest.register_craft({
  75. output = "akalin:block",
  76. recipe = {
  77. {"akalin:ingot", "akalin:ingot", "akalin:ingot"},
  78. {"akalin:ingot", "akalin:ingot", "akalin:ingot"},
  79. {"akalin:ingot", "akalin:ingot", "akalin:ingot"},
  80. },
  81. })
  82. minetest.register_craft({
  83. type = "shapeless",
  84. output = "akalin:ingot 9",
  85. recipe = {"akalin:block"},
  86. })
  87. minetest.register_node("akalin:glass", {
  88. description = "Akalin Glass",
  89. drawtype = "glasslike_framed_optional",
  90. tiles = {"glooptest_akalin_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", "akalin:dust"},
  102. rarity = 1,
  103. },
  104. }
  105. },
  106. })
  107. minetest.register_craft({
  108. type = "alloying",
  109. output = "akalin:glass",
  110. recipe = {"default:glass", "akalin:ingot"},
  111. time = 6,
  112. })