init.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. minetest.register_node("arol:ore", {
  2. description = "Arol Ore",
  3. tiles = {"default_stone.png^gloopores_mineral_arol.png"},
  4. groups = utility.dig_groups("mineral", {ore=1}),
  5. drop = "arol: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 = "arol: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("arol:lump", {
  21. description = "Arol Lump",
  22. inventory_image = "gloopores_arol_lump.png",
  23. })
  24. minetest.register_craft({
  25. type = "cooking",
  26. output = "arol:ingot",
  27. recipe = "arol:lump",
  28. })
  29. minetest.register_craftitem("arol:dust", {
  30. description = "Arol Dust",
  31. inventory_image = "technic_arol_dust.png"
  32. })
  33. minetest.register_craft({
  34. type = "cooking",
  35. output = "arol:ingot",
  36. recipe = "arol:dust",
  37. })
  38. minetest.register_craft({
  39. type = "grinding",
  40. output = 'arol:dust 2',
  41. recipe = 'arol:lump',
  42. time = 10,
  43. })
  44. minetest.register_craft({
  45. type = "anvil",
  46. output = 'arol:dust 2',
  47. recipe = 'arol:lump',
  48. })
  49. minetest.register_craftitem("arol:ingot", {
  50. description = "Arol Ingot",
  51. inventory_image = "gloopores_arol_ingot.png",
  52. groups = {ingot = 1},
  53. })
  54. minetest.register_craft({
  55. type = "grinding",
  56. output = 'arol:dust',
  57. recipe = 'arol:ingot',
  58. time = 10,
  59. })
  60. minetest.register_node("arol:block", {
  61. description = "Arol Block",
  62. tiles = {"glooptest_arol_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. "arol_block",
  69. "arol:block",
  70. {cracky = 1},
  71. {"glooptest_arol_block.png"},
  72. "Arol Block",
  73. default.node_sound_metal_defaults()
  74. )
  75. minetest.register_craft({
  76. output = "arol:block",
  77. recipe = {
  78. {"arol:ingot", "arol:ingot", "arol:ingot"},
  79. {"arol:ingot", "arol:ingot", "arol:ingot"},
  80. {"arol:ingot", "arol:ingot", "arol:ingot"},
  81. },
  82. })
  83. minetest.register_craft({
  84. type = "shapeless",
  85. output = "arol:ingot 9",
  86. recipe = {"arol:block"},
  87. })
  88. minetest.register_node("arol:glass", {
  89. description = "Arol Glass",
  90. drawtype = "glasslike_framed_optional",
  91. tiles = {"glooptest_arol_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", "arol:dust"},
  103. rarity = 1,
  104. },
  105. }
  106. },
  107. })
  108. minetest.register_craft({
  109. type = "alloying",
  110. output = "arol:glass",
  111. recipe = {"default:glass", "arol:ingot"},
  112. time = 6,
  113. })