Missing crafts and sounds

This commit is contained in:
mrkubax10 2023-03-08 15:11:06 +02:00
parent 809219750a
commit 8c8c1bb60a

View File

@ -173,6 +173,7 @@ elseif industrialtest.mclAvailable then
definition.after_dig_node=function(pos,oldnode,oldmeta)
mclAfterDigNode(pos,oldmeta,{"charged","fuel"})
end
definition.sounds=mcl_sounds.node_sound_metal_defaults()
definition._mcl_blast_resistance=3.5
definition._mcl_hardness=3.9
end
@ -204,6 +205,15 @@ minetest.register_craft({
{"","",industrialtest.elementKeys.furnace}
}
})
minetest.register_craft({
type="shaped",
output="industrialtest:generator",
recipe={
{"","industrialtest:re_battery",""},
{"industrialtest:refined_iron_ingot","industrialtest:refined_iron_ingot","industrialtest:refined_iron_ingot"},
{"","industrialtest:iron_furnace",""}
}
})
-- Item processing machines
local function ironFurnaceFormspec(fuelPercent,srcPercent)
@ -402,6 +412,7 @@ if industrialtest.mtgAvailable then
cracky=1,
level=2
}
definition.sounds=default.node_sound_metal_defaults()
definition.can_dig=function(pos)
local meta=minetest.get_meta(pos)
local inv=meta:get_inventory()
@ -411,6 +422,7 @@ elseif industrialtest.mclAvailable then
definition.after_dig_node=function(pos,oldnode,oldmeta)
mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
end
definition.sounds=mcl_sounds.node_sound_metal_defaults()
definition._mcl_blast_resistance=3
definition._mcl_hardness=3.5
end
@ -424,6 +436,15 @@ minetest.register_craft({
{industrialtest.elementKeys.ironIngot,industrialtest.elementKeys.ironIngot,industrialtest.elementKeys.ironIngot}
}
})
minetest.register_craft({
type="shaped",
output="industrialtest:iron_furnace",
recipe={
{"",industrialtest.elementKeys.ironIngot,""},
{industrialtest.elementKeys.ironIngot,"",industrialtest.elementKeys.ironIngot},
{industrialtest.elementKeys.ironIngot,industrialtest.elementKeys.furnace,industrialtest.elementKeys.ironIngot}
}
})
local function electricFurnaceFormspec(powerPercent,srcPercent)
local formspec
@ -636,6 +657,7 @@ if industrialtest.mtgAvailable then
cracky=1,
level=2
}
definition.sounds=default.node_sound_metal_defaults()
definition.can_dig=function(pos)
local meta=minetest.get_meta(pos)
local inv=meta:get_inventory()
@ -645,6 +667,7 @@ elseif industrialtest.mclAvailable then
definition.after_dig_node=function(pos,oldnode,oldmeta)
mclAfterDigNode(pos,oldmeta,{"src","powerStorage","dst","upgrades"})
end
definition.sounds=mcl_sounds.node_sound_metal_defaults()
definition._mcl_blast_resistance=3
definition._mcl_hardness=3.5
end