init.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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_craftitem("akalin:ingot", {
  44. description = "Akalin Ingot",
  45. inventory_image = "gloopores_akalin_ingot.png",
  46. groups = {ingot = 1},
  47. })
  48. minetest.register_craft({
  49. type = "grinding",
  50. output = 'akalin:dust',
  51. recipe = 'akalin:ingot',
  52. time = 10,
  53. })
  54. minetest.register_node("akalin:block", {
  55. description = "Akalin Block",
  56. tiles = {"gloopores_akalin_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. "akalin_block",
  63. "akalin:block",
  64. {cracky = 1},
  65. {"gloopores_akalin_block.png"},
  66. "Akalin Block",
  67. default.node_sound_metal_defaults()
  68. )
  69. minetest.register_craft({
  70. output = "akalin:block",
  71. recipe = {
  72. {"akalin:ingot", "akalin:ingot", "akalin:ingot"},
  73. {"akalin:ingot", "akalin:ingot", "akalin:ingot"},
  74. {"akalin:ingot", "akalin:ingot", "akalin:ingot"},
  75. },
  76. })
  77. minetest.register_craft({
  78. type = "shapeless",
  79. output = "akalin:ingot 9",
  80. recipe = {"akalin:block"},
  81. })
  82. minetest.register_node("akalin:glass", {
  83. description = "Akalin Glass",
  84. drawtype = "glasslike_framed_optional",
  85. tiles = {"glooptest_akalin_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", "akalin:dust"},
  97. rarity = 1,
  98. },
  99. }
  100. },
  101. })
  102. minetest.register_craft({
  103. type = "alloying",
  104. output = "akalin:glass",
  105. recipe = {"default:glass", "akalin:ingot"},
  106. time = 6,
  107. })