From 20952b751a9c99db11cf528efaebee398b389e65 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Fri, 17 Mar 2023 18:58:14 +0100 Subject: [PATCH] Add electronic circuit craft --- craftitems.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/craftitems.lua b/craftitems.lua index 0ddf9b4..01e0858 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -28,7 +28,7 @@ minetest.register_craft({ type="shaped", output="industrialtest:re_battery", recipe={ - {"","industrialtest:copper_cable",""}, + {"","industrialtest:insulated_copper_cable",""}, {industrialtest.elementKeys.tinIngot,industrialtest.elementKeys.powerCarrier,industrialtest.elementKeys.tinIngot}, {industrialtest.elementKeys.tinIngot,industrialtest.elementKeys.powerCarrier,industrialtest.elementKeys.tinIngot} } @@ -73,6 +73,15 @@ minetest.register_craftitem("industrialtest:electronic_circuit",{ description=S("Electronic Circuit"), inventory_image="industrialtest_electronic_circuit.png" }) +minetest.register_craft({ + type="shaped", + output="industrialtest:electronic_circuit", + recipe={ + {"industrialtest:insulated_copper_cable","industrialtest:insulated_copper_cable","industrialtest:insulated_copper_cable"}, + {industrialtest.elementKeys.powerCarrier,"industrialtest:refined_iron_ingot",industrialtest.elementKeys.powerCarrier}, + {"industrialtest:insulated_copper_cable","industrialtest:insulated_copper_cable","industrialtest:insulated_copper_cable"} + } +}) -- Item callbacks minetest.register_on_player_inventory_action(function(player,action,inventory,info) @@ -86,5 +95,5 @@ minetest.register_on_craft(function(itemstack) if industrialtest.api.preparePowerStorageItem(itemstack) then return end - industrialtest.api.prepareItemTool(itemstack) + industrialtest.api.prepareToolItem(itemstack) end)