From af391f7741fc2b7f1a4972fda548425ca42255c5 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Thu, 23 Feb 2023 13:49:13 +0100 Subject: [PATCH] Fix some oversights --- compatibility.lua | 19 +++++++++++------- ...png => industrialtest_batterybox_side.png} | Bin 2 files changed, 12 insertions(+), 7 deletions(-) rename textures/{industrial_test_batterybox_side.png => industrialtest_batterybox_side.png} (100%) diff --git a/compatibility.lua b/compatibility.lua index 1c99d13..a5e792b 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -17,7 +17,7 @@ local S=minetest.get_translator("industrialtest") local mtgAvailable=minetest.get_modpath("default") -local mclAvaliable=minetest.get_modpath("mcl_core") +local mclAvailable=minetest.get_modpath("mcl_core") -- compatibilty that adds not existing elements if mclAvailable then @@ -39,23 +39,28 @@ if mclAvailable then }) -- register required blocks that are not available in MCL - minetest.register_node("industrialtest:tin_ore",{ + minetest.register_node("industrialtest:stone_with_tin",{ description=S("Tin Ore"), tiles={"default_stone.png^industrialtest_mcl_tin_ore.png"}, sounds=mcl_sounds.node_sound_stone_defaults(), - drop="industrialtest:raw_tin" + drop="industrialtest:raw_tin", + groups={pickaxey=3,building_block=1,material_stone=1,blast_furnace_smeltable=1}, + _mcl_blast_resistance = 3, + _mcl_hardness = 3, + _mcl_silk_touch_drop = true, + _mcl_fortune_drop = mcl_core.fortune_drop_ore, }) -- register required ores that are not available in MCL local stonelike={"mcl_core:stone","mcl_core:diorite","mcl_core:andesite","mcl_core:granite"} minetest.register_ore({ ore_type="scatter", - ore="industrialtest:tin_ore", - wherein="mcl_core:stone", - clust_scarity=10*10*10, + ore="industrialtest:stone_with_tin", + wherein=stonelike, + clust_scarcity=10*10*10, clust_num_ores=5, clust_size=3, y_max=mcl_worlds.layer_to_y(39), y_min=mcl_vars.mg_overworld_min }) -end \ No newline at end of file +end diff --git a/textures/industrial_test_batterybox_side.png b/textures/industrialtest_batterybox_side.png similarity index 100% rename from textures/industrial_test_batterybox_side.png rename to textures/industrialtest_batterybox_side.png