init.lua 2.8 KB

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