industrialtest/minerals.lua

123 lines
3.4 KiB
Lua
Raw Permalink Normal View History

2023-02-23 19:11:13 +01:00
-- IndustrialTest
-- Copyright (C) 2023 mrkubax10
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
2023-02-27 20:18:20 +01:00
if industrialtest.mtgAvailable then
2024-03-10 13:49:03 +01:00
industrialtest.internal.registerMetal("uranium","Uranium",3)
2023-02-27 20:18:20 +01:00
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_uranium",
wherein="default:stone",
2024-03-23 18:57:08 +01:00
clust_scarcity=15*15*15,
2023-02-27 20:18:20 +01:00
clust_num_ores=3,
clust_size=3,
y_max=-128,
y_min=-31000
})
2024-03-24 20:56:43 +01:00
2024-03-10 13:49:03 +01:00
industrialtest.internal.registerMetal("lead","Lead",2)
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_lead",
wherein="default:stone",
2024-03-23 18:57:08 +01:00
clust_scarcity=11*11*11,
2024-03-10 13:49:03 +01:00
clust_num_ores=3,
clust_size=3,
y_max=-48,
y_min=-31000
})
2024-03-24 20:56:43 +01:00
industrialtest.internal.registerMetal("iridium","Iridium",3)
2024-03-24 20:56:43 +01:00
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_iridium",
wherein="default:stone",
clust_scarcity=40*40*40,
clust_num_ores=3,
clust_size=3,
y_max=-512,
y_min=-31000
})
2023-02-27 20:18:20 +01:00
elseif industrialtest.mclAvailable then
local stonelike={"mcl_core:stone","mcl_core:diorite","mcl_core:andesite","mcl_core:granite"}
2024-03-10 13:49:03 +01:00
local deepslatelike={"mcl_deepslate:deepslate","mcl_deepslate:tuff"}
2024-03-24 20:56:43 +01:00
industrialtest.internal.registerMetal("uranium","Uranium",4,4,4,4,5,5)
2023-02-27 20:18:20 +01:00
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_uranium",
wherein=stonelike,
2024-03-23 18:57:08 +01:00
clust_scarcity=15*15*15,
2023-02-27 20:18:20 +01:00
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(20),
y_min=mcl_vars.mg_overworld_min
})
2023-03-08 21:56:37 +01:00
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:deepslate_with_uranium",
2024-03-10 13:49:03 +01:00
wherein=deepslatelike,
2024-03-23 18:57:08 +01:00
clust_scarcity=15*15*15,
2024-03-10 13:49:03 +01:00
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(15),
y_min=mcl_vars.mg_overworld_min
})
2024-03-24 20:56:43 +01:00
2024-03-10 13:49:03 +01:00
industrialtest.internal.registerMetal("lead","Lead",4,4,4,4,6,5)
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_lead",
wherein=stonelike,
2024-03-23 18:57:08 +01:00
clust_scarcity=11*11*11,
2024-03-10 13:49:03 +01:00
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(30),
y_min=mcl_vars.mg_overworld_min
})
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:deepslate_with_lead",
wherein=deepslatelike,
2024-03-23 18:57:08 +01:00
clust_scarcity=11*11*11,
2023-03-08 21:56:37 +01:00
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(15),
y_min=mcl_vars.mg_overworld_min
})
2024-03-24 20:56:43 +01:00
industrialtest.internal.registerMetal("iridium","Iridium",4,5,4,4,5,5)
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_iridium",
wherein=stonelike,
clust_scarcity=40*40*40,
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(20),
y_min=mcl_vars.mg_overworld_min
})
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:deepslate_with_iridium",
wherein=deepslatelike,
clust_scarcity=40*40*40,
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(15),
y_min=mcl_vars.mg_overworld_min
})
2023-02-27 20:18:20 +01:00
end