Add uranium and uranium ore generation

This commit is contained in:
mrkubax10 2023-02-23 19:11:13 +01:00
parent 4f3f772eca
commit 5bc315e0e8
2 changed files with 39 additions and 0 deletions

View File

@ -122,6 +122,16 @@ if industrialtest.mclAvailable then
y_max=mcl_worlds.layer_to_y(39),
y_min=mcl_vars.mg_overworld_min
})
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_uranium",
wherein=stonelike,
clust_scarcity=7*7*7,
clust_num_ores=3,
clust_size=3,
y_max=mcl_worlds.layer_to_y(20),
y_min=mcl_vars.mg_overworld_min
})
elseif industrialtest.mtgAvailable then
industrialtest.registerMetal=function(name,displayName,oreBlastResistance,oreHardness,rawBlockBlastResistance,rawBlockHardness,blockBlastResistance,blockHardness)
minetest.register_craftitem("industrialtest:"..name.."_lump",{
@ -175,6 +185,18 @@ elseif industrialtest.mtgAvailable then
})
end
industrialtest.elementKeys.tinIngot="default:tin_ingot"
-- ore generation is game-dependent so register it there
minetest.register_ore({
ore_type="scatter",
ore="industrialtest:stone_with_uranium",
wherein="default:stone",
clust_scarcity=7*7*7,
clust_num_ores=3,
clust_size=3,
y_max=-128,
y_min=-31000
})
else
error("No compatible games found!")
end

17
minerals.lua Normal file
View File

@ -0,0 +1,17 @@
-- 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/>.
industrialtest.registerMetal("uranium","Uranium",4,4)