ores.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. -- Baked Clay
  2. minetest.register_ore({
  3. ore_type = "blob",
  4. ore = "bakedclay:red",
  5. wherein = {"bakedclay:orange"},
  6. clust_scarcity = 4 * 4 * 4,
  7. clust_num_ores = 8,
  8. clust_size = 6,
  9. y_min = -10,
  10. y_max = 71,
  11. noise_params = {
  12. offset = 0.35,
  13. scale = 0.2,
  14. spread = {x = 5, y = 5, z = 5},
  15. seed = -316,
  16. octaves = 1,
  17. persist = 0.5
  18. },
  19. })
  20. minetest.register_ore({
  21. ore_type = "blob",
  22. ore = "bakedclay:grey",
  23. wherein = {"bakedclay:orange"},
  24. clust_scarcity = 4 * 4 * 4,
  25. clust_num_ores = 8,
  26. clust_size = 6,
  27. y_min = -10,
  28. y_max = 71,
  29. noise_params = {
  30. offset = 0.35,
  31. scale = 0.2,
  32. spread = {x = 5, y = 5, z = 5},
  33. seed = -613,
  34. octaves = 1,
  35. persist = 0.5
  36. },
  37. })
  38. local add_ore = function(a, b, c, d, e, f, g)
  39. minetest.register_ore({
  40. ore_type = "scatter",
  41. ore = a,
  42. wherein = b,
  43. clust_scarcity = c,
  44. clust_num_ores = d,
  45. clust_size = e,
  46. y_min = f,
  47. y_max = g,
  48. })
  49. end
  50. -- Coal
  51. add_ore("default:stone_with_coal", "default:desert_stone", 24*24*24, 27, 6, -31000, -16)
  52. -- Iron
  53. add_ore("default:stone_with_iron", "default:desert_stone", 9*9*9, 5, 3, -63, -16)
  54. add_ore("default:stone_with_iron", "default:desert_stone", 24*24*24, 27, 6, -31000, -64)
  55. --Mese
  56. add_ore("default:stone_with_mese", "default:desert_stone", 14*14*14, 5, 3, -31000, -256)
  57. -- Gold
  58. add_ore("default:stone_with_gold", "default:desert_stone", 15*15*15, 3, 2, -255, -64)
  59. add_ore("default:stone_with_gold", "default:desert_stone", 13*13*13, 5, 3, -31000, -256)
  60. -- Diamond
  61. add_ore("default:stone_with_diamond", "default:desert_stone", 17*17*17, 4, 3, -255, -128)
  62. add_ore("default:stone_with_diamond", "default:desert_stone", 15*15*15, 4, 3, -31000, -256)
  63. -- Copper
  64. add_ore("default:stone_with_copper", "default:desert_stone", 9*9*9, 5, 3, -31000, -64)
  65. -- Coral Sand
  66. add_ore("ethereal:sandy", "default:sand", 10*10*10, 24, 4, -100, -10)
  67. -- Etherium
  68. minetest.register_ore({
  69. ore_type = "scatter",
  70. ore = "ethereal:etherium_ore",
  71. wherein = "default:desert_stone",
  72. clust_scarcity = 10*10*10,
  73. clust_num_ores = 1,
  74. clust_size = 1,
  75. y_min = 5,
  76. y_max = 40,
  77. biomes = {"caves"},
  78. })