X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=mods%2Fmain%2Fore.lua;h=2f28503aac5eacd9b84d2f1659b8cc41845ba7fd;hb=b3d6165fc1afbbbeb71bf47bccfc38f29c4698a9;hp=044c60cc7c275aa3ca23f57a6f2531527901ff57;hpb=936e75e1f5fede0730d5827f00c9cb8f9259f993;p=Crafter.git diff --git a/mods/main/ore.lua b/mods/main/ore.lua index 044c60c..2f28503 100644 --- a/mods/main/ore.lua +++ b/mods/main/ore.lua @@ -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, +})