Add electronic circuit craft
This commit is contained in:
parent
5d08a76ff0
commit
20952b751a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue