init.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. local S = technic.getter
  2. -- Bauxite
  3. --- Bauxite Lump
  4. minetest.register_craftitem(":technic_aluminum:bauxite_lump", {
  5. description = S("Bauxite Lump"),
  6. inventory_image = "aluminum_bauxite_lump.png",
  7. })
  8. --- Bauxite Dust
  9. minetest.register_craftitem(":technic_aluminum:bauxite_dust", {
  10. description = S("Bauxite Dust"),
  11. inventory_image = "aluminum_bauxite_dust.png",
  12. })
  13. ---- Grinder Recipe: Bauxite Lump => 2x Bauxite Dust
  14. technic.register_grinder_recipe({
  15. input = {"technic_aluminum:bauxite_lump"},
  16. output = "technic_aluminum:bauxite_dust 2"
  17. })
  18. --- Bauxite Ore
  19. minetest.register_node(":technic_aluminum:stone_with_bauxite", {
  20. description = "Bauxite Ore",
  21. tiles = {"default_stone.png^aluminum_mineral_bauxite.png"},
  22. groups = {cracky = 2},
  23. drop = 'technic_aluminum:bauxite_lump',
  24. sounds = default.node_sound_stone_defaults(),
  25. })
  26. minetest.register_node(":technic_aluminum:stone_with_bauxite_rich", {
  27. description = "Rich Bauxite Ore",
  28. tiles = {"default_stone.png^aluminum_mineral_bauxite_rich.png"},
  29. groups = {cracky = 2},
  30. drop = 'technic_aluminum:bauxite_lump 2',
  31. sounds = default.node_sound_stone_defaults(),
  32. })
  33. --[[
  34. Aluminum is actually the most abundant metal in the Earth's crust,
  35. even more so than iron, but since it's a mid/late-game metal, the
  36. distribution in this mod is a little different.
  37. Originally, I gave bauxite the same spawn patterns as iron, but this
  38. produced way too much bauxite in the same areas as iron, which led
  39. me to leave a ton of it behind until I could process it reliably.
  40. Also, I always felt it was weird to be climbing mountains and seeing
  41. nothing but rock and the occasional coal sticking out. I felt there
  42. should be more ores at higher elevations, so bauxite is now found in
  43. those areas. Hopefully this will help alleviate the reduced findings
  44. at lower elevations.
  45. ]]--
  46. minetest.register_ore({
  47. ore_type = "scatter",
  48. ore = "technic_aluminum:stone_with_bauxite",
  49. wherein = "default:stone",
  50. clust_scarcity = 8 * 8 * 8,
  51. clust_num_ores = 5,
  52. clust_size = 3,
  53. y_min = 65,
  54. y_max = 256,
  55. })
  56. minetest.register_ore({
  57. ore_type = "scatter",
  58. ore = "technic_aluminum:stone_with_bauxite",
  59. wherein = "default:stone",
  60. clust_scarcity = 11 * 11 * 11,
  61. clust_num_ores = 5,
  62. clust_size = 3,
  63. y_min = 32,
  64. y_max = 64,
  65. })
  66. minetest.register_ore({
  67. ore_type = "scatter",
  68. ore = "technic_aluminum:stone_with_bauxite",
  69. wherein = "default:stone",
  70. clust_scarcity = 14 * 14 * 14,
  71. clust_num_ores = 3,
  72. clust_size = 2,
  73. y_min = -15,
  74. y_max = 2,
  75. })
  76. minetest.register_ore({
  77. ore_type = "scatter",
  78. ore = "technic_aluminum:stone_with_bauxite",
  79. wherein = "default:stone",
  80. clust_scarcity = 11 * 11 * 11,
  81. clust_num_ores = 4,
  82. clust_size = 3,
  83. y_min = -63,
  84. y_max = -16,
  85. })
  86. minetest.register_ore({
  87. ore_type = "scatter",
  88. ore = "technic_aluminum:stone_with_bauxite",
  89. wherein = "default:stone",
  90. clust_scarcity = 10 * 10 * 10,
  91. clust_num_ores = 5,
  92. clust_size = 3,
  93. y_min = -31000,
  94. y_max = -64,
  95. })
  96. minetest.register_ore({
  97. ore_type = "scatter",
  98. ore = "technic_aluminum:stone_with_bauxite_rich",
  99. wherein = "default:stone",
  100. clust_scarcity = 16 * 16 * 16,
  101. clust_num_ores = 5,
  102. clust_size = 3,
  103. y_min = 32,
  104. y_max = 64,
  105. })
  106. minetest.register_ore({
  107. ore_type = "scatter",
  108. ore = "technic_aluminum:stone_with_bauxite",
  109. wherein = "default:stone",
  110. clust_scarcity = 16 * 16 * 16,
  111. clust_num_ores = 3,
  112. clust_size = 2,
  113. y_min = -1500,
  114. y_max = 63,
  115. })