From a9387b9570ad17b2c2558093d39a5999c1080b44 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sat, 15 Apr 2023 13:40:49 +0200 Subject: [PATCH] Add lapotron crystal --- compatibility.lua | 2 ++ craftitems.lua | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/compatibility.lua b/compatibility.lua index 0109f35..34221ee 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -506,6 +506,7 @@ if industrialtest.mclAvailable then industrialtest.elementKeys.coal="mcl_core:coal_lump" industrialtest.elementKeys.clay="mcl_core:clay_lump" industrialtest.elementKeys.diamond="mcl_core:diamond" + industrialtest.elementKeys.blueDye="mcl_core:lapis" industrialtest.elementKeys.bucket="mcl_buckets:bucket_empty" industrialtest.elementKeys.bucketWithLava="mcl_buckets:bucket_lava" industrialtest.elementKeys.bucketWithWater="mcl_buckets:bucket_water" @@ -713,6 +714,7 @@ elseif industrialtest.mtgAvailable then industrialtest.elementKeys.stick="default:stick" industrialtest.elementKeys.flint="default:flint" industrialtest.elementKeys.snowball="default:snow" + industrialtest.elementKeys.blueDye="dye:blue" industrialtest.elementKeys.bucket="bucket:bucket_empty" industrialtest.elementKeys.bucketWithLava="bucket:bucket_lava" industrialtest.elementKeys.bucketWithWater="bucket:bucket_water" diff --git a/craftitems.lua b/craftitems.lua index 413557f..2256dcf 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -51,6 +51,23 @@ minetest.register_craft({ } }) +minetest.register_tool("industrialtest:lapotron_crystal",{ + description=S("Lapotron Crystal"), + inventory_image="industrialtest_lapotron_crystal.png", + _industrialtest_powerStorage=true, + _industrialtest_powerCapacity=1000000, + _industrialtest_powerFlow=industrialtest.api.evPowerFlow +}) +minetest.register_craft({ + type="shaped", + output="industrialtest:lapotron_crystal", + recipe={ + {industrialtest.elementKeys.blueDye,"industrialtest:electronic_circuit",industrialtest.elementKeys.blueDye}, + {industrialtest.elementKeys.blueDye,"industrialtest:energy_crystal",industrialtest.elementKeys.blueDye}, + {industrialtest.elementKeys.blueDye,"industrialtest:electronic_circuit",industrialtest.elementKeys.blueDye} + } +}) + -- Other resources minetest.register_craftitem("industrialtest:refined_iron_ingot",{ description=S("Refined Iron Ingot"),