init.lua 2.8 KB

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