init.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. })
  9. oregen.register_ore({
  10. ore_type = "scatter",
  11. ore = "arol: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("arol:lump", {
  20. description = "Arol Lump",
  21. inventory_image = "gloopores_arol_lump.png",
  22. })
  23. minetest.register_craft({
  24. type = "cooking",
  25. output = "arol:ingot",
  26. recipe = "arol:lump",
  27. })
  28. minetest.register_craftitem("arol:dust", {
  29. description = "Arol Dust",
  30. inventory_image = "technic_arol_dust.png"
  31. })
  32. minetest.register_craft({
  33. type = "cooking",
  34. output = "arol:ingot",
  35. recipe = "arol:dust",
  36. })
  37. minetest.register_craft({
  38. type = "grinding",
  39. output = 'arol:dust 2',
  40. recipe = 'arol:lump',
  41. time = 10,
  42. })
  43. minetest.register_craftitem("arol:ingot", {
  44. description = "Arol Ingot",
  45. inventory_image = "gloopores_arol_ingot.png",
  46. groups = {ingot = 1},
  47. })
  48. minetest.register_craft({
  49. type = "grinding",
  50. output = 'arol:dust',
  51. recipe = 'arol:ingot',
  52. time = 10,
  53. })
  54. minetest.register_node("arol:block", {
  55. description = "Arol Block",
  56. tiles = {"glooptest_arol_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. "arol_block",
  63. "arol:block",
  64. {cracky = 1},
  65. {"glooptest_arol_block.png"},
  66. "Arol Block",
  67. default.node_sound_metal_defaults()
  68. )
  69. minetest.register_craft({
  70. output = "arol:block",
  71. recipe = {
  72. {"arol:ingot", "arol:ingot", "arol:ingot"},
  73. {"arol:ingot", "arol:ingot", "arol:ingot"},
  74. {"arol:ingot", "arol:ingot", "arol:ingot"},
  75. },
  76. })
  77. minetest.register_craft({
  78. type = "shapeless",
  79. output = "arol:ingot 9",
  80. recipe = {"arol:block"},
  81. })
  82. minetest.register_node("arol:glass", {
  83. description = "Arol Glass",
  84. drawtype = "glasslike_framed_optional",
  85. tiles = {"glooptest_arol_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", "arol:dust"},
  97. rarity = 1,
  98. },
  99. }
  100. },
  101. })
  102. minetest.register_craft({
  103. type = "alloying",
  104. output = "arol:glass",
  105. recipe = {"default:glass", "arol:ingot"},
  106. time = 6,
  107. })