]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/main/ore.lua
Add ore
[Crafter.git] / mods / main / ore.lua
index 044c60cc7c275aa3ca23f57a6f2531527901ff57..2f28503aac5eacd9b84d2f1659b8cc41845ba7fd 100644 (file)
@@ -3,19 +3,112 @@ depth = initial level found
 ]]--
 
        
-local gold_depth = 64
-local incriment = 50
-local loops = 31000/incriment
+--coal
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:coalore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 5,
+       clust_size     = 3,
+       y_max          = 32,
+       y_min          = -64,
+})
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:coalore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 7,
+       clust_size     = 3,
+       y_max          = -64,
+       y_min          = -128,
+})
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:coalore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 9,
+       clust_size     = 5,
+       y_max          = -128,
+       y_min          = -31000,
+})
 
-for i = 1,loops do
-       minetest.register_ore({
-               ore_type       = "scatter",
-               ore            = "main:coalore",
-               wherein        = "main:stone",
-               clust_scarcity = 13 * 13 * 13,
-               clust_num_ores = 5,
-               clust_size     = 3,
-               y_max          = 31000,
-               y_min          = -31000,
-       })
-end
+
+--iron
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:ironore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 5,
+       clust_size     = 3,
+       y_max          = 32,
+       y_min          = -64,
+})
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:ironore",
+       wherein        = "main:stone",
+       clust_scarcity = 15 * 15 * 15,
+       clust_num_ores = 7,
+       clust_size     = 3,
+       y_max          = -32,
+       y_min          = -128,
+})
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:ironore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 9,
+       clust_size     = 5,
+       y_max          = -128,
+       y_min          = -31000,
+})
+
+
+--gold
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:goldore",
+       wherein        = "main:stone",
+       clust_scarcity = 15 * 15 * 15,
+       clust_num_ores = 7,
+       clust_size     = 3,
+       y_max          = -128,
+       y_min          = -256,
+})
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:goldore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 9,
+       clust_size     = 5,
+       y_max          = -256,
+       y_min          = -31000,
+})
+
+--diamond
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:diamondore",
+       wherein        = "main:stone",
+       clust_scarcity = 15 * 15 * 15,
+       clust_num_ores = 7,
+       clust_size     = 3,
+       y_max          = -256,
+       y_min          = -328,
+})
+minetest.register_ore({
+       ore_type       = "scatter",
+       ore            = "main:diamondore",
+       wherein        = "main:stone",
+       clust_scarcity = 13 * 13 * 13,
+       clust_num_ores = 9,
+       clust_size     = 5,
+       y_max          = -328,
+       y_min          = -31000,
+})