forked from mrkubax10/industrialtest
Add uranium and uranium ore generation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user