From 3bfb473d35b18208c76729b483b440aaf62ff488 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Wed, 8 Mar 2023 21:56:37 +0100 Subject: [PATCH] Add deepslate ores in MCL --- compatibility.lua | 25 +++++++++++++++++++++++++ minerals.lua | 10 ++++++++++ 2 files changed, 35 insertions(+) diff --git a/compatibility.lua b/compatibility.lua index 15a82b9..2c81a20 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -48,6 +48,21 @@ if industrialtest.mclAvailable then tiles={"default_stone.png^industrialtest_mcl_stone_with_"..name..".png"}, sounds=mcl_sounds.node_sound_stone_defaults(), drop="industrialtest:raw_"..name, + is_ground_content=true, + groups={pickaxey=3,building_block=1,material_stone=1,blast_furnace_smeltable=1}, + _mcl_blast_resistance = oreBlastResistance, + _mcl_hardness = oreHardness, + _mcl_silk_touch_drop = true, + _mcl_fortune_drop = mcl_core.fortune_drop_ore, + }) + minetest.register_node("industrialtest:deepslate_with_"..name,{ + description=S("Deepslate with "..displayName), + tiles={"mcl_deepslate_top.png^industrialtest_mcl_stone_with_"..name..".png","mcl_deepslate_top.png^industrialtest_mcl_stone_with_"..name..".png","mcl_deepslate.png^industrialtest_mcl_stone_with_"..name..".png"}, + sounds=mcl_sounds.node_sound_stone_defaults(), + drop="industrialtest:raw_"..name, + paramtype2="facedir", + is_ground_content=true, + on_place=mcl_util.rotate_axis, groups={pickaxey=3,building_block=1,material_stone=1,blast_furnace_smeltable=1}, _mcl_blast_resistance = oreBlastResistance, _mcl_hardness = oreHardness, @@ -561,6 +576,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:deepslate_with_tin", + wherein={"mcl_deepslate:deepslate","mcl_deepslate:tuff"}, + clust_scarcity=10*10*10, + clust_num_ores=5, + clust_size=3, + y_max=mcl_worlds.layer_to_y(16), + y_min=mcl_vars.mg_overworld_min + }) elseif industrialtest.mtgAvailable then industrialtest.registerMetal=function(name,displayName,hardness) minetest.register_craftitem("industrialtest:"..name.."_lump",{ diff --git a/minerals.lua b/minerals.lua index 025277e..df4aa56 100644 --- a/minerals.lua +++ b/minerals.lua @@ -39,4 +39,14 @@ elseif industrialtest.mclAvailable then 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_uranium", + wherein={"mcl_deepslate:deepslate","mcl_deepslate:tuff"}, + clust_scarcity=7*7*7, + clust_num_ores=3, + clust_size=3, + y_max=mcl_worlds.layer_to_y(15), + y_min=mcl_vars.mg_overworld_min + }) end