forked from mrkubax10/industrialtest
Missing crafts and sounds
This commit is contained in:
parent
809219750a
commit
8c8c1bb60a
23
machines.lua
23
machines.lua
@ -173,6 +173,7 @@ elseif industrialtest.mclAvailable then
|
|||||||
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
||||||
mclAfterDigNode(pos,oldmeta,{"charged","fuel"})
|
mclAfterDigNode(pos,oldmeta,{"charged","fuel"})
|
||||||
end
|
end
|
||||||
|
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
||||||
definition._mcl_blast_resistance=3.5
|
definition._mcl_blast_resistance=3.5
|
||||||
definition._mcl_hardness=3.9
|
definition._mcl_hardness=3.9
|
||||||
end
|
end
|
||||||
@ -204,6 +205,15 @@ minetest.register_craft({
|
|||||||
{"","",industrialtest.elementKeys.furnace}
|
{"","",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
|
-- Item processing machines
|
||||||
local function ironFurnaceFormspec(fuelPercent,srcPercent)
|
local function ironFurnaceFormspec(fuelPercent,srcPercent)
|
||||||
@ -402,6 +412,7 @@ if industrialtest.mtgAvailable then
|
|||||||
cracky=1,
|
cracky=1,
|
||||||
level=2
|
level=2
|
||||||
}
|
}
|
||||||
|
definition.sounds=default.node_sound_metal_defaults()
|
||||||
definition.can_dig=function(pos)
|
definition.can_dig=function(pos)
|
||||||
local meta=minetest.get_meta(pos)
|
local meta=minetest.get_meta(pos)
|
||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
@ -411,6 +422,7 @@ elseif industrialtest.mclAvailable then
|
|||||||
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
||||||
mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
|
mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
|
||||||
end
|
end
|
||||||
|
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
||||||
definition._mcl_blast_resistance=3
|
definition._mcl_blast_resistance=3
|
||||||
definition._mcl_hardness=3.5
|
definition._mcl_hardness=3.5
|
||||||
end
|
end
|
||||||
@ -424,6 +436,15 @@ minetest.register_craft({
|
|||||||
{industrialtest.elementKeys.ironIngot,industrialtest.elementKeys.ironIngot,industrialtest.elementKeys.ironIngot}
|
{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 function electricFurnaceFormspec(powerPercent,srcPercent)
|
||||||
local formspec
|
local formspec
|
||||||
@ -636,6 +657,7 @@ if industrialtest.mtgAvailable then
|
|||||||
cracky=1,
|
cracky=1,
|
||||||
level=2
|
level=2
|
||||||
}
|
}
|
||||||
|
definition.sounds=default.node_sound_metal_defaults()
|
||||||
definition.can_dig=function(pos)
|
definition.can_dig=function(pos)
|
||||||
local meta=minetest.get_meta(pos)
|
local meta=minetest.get_meta(pos)
|
||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
@ -645,6 +667,7 @@ elseif industrialtest.mclAvailable then
|
|||||||
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
||||||
mclAfterDigNode(pos,oldmeta,{"src","powerStorage","dst","upgrades"})
|
mclAfterDigNode(pos,oldmeta,{"src","powerStorage","dst","upgrades"})
|
||||||
end
|
end
|
||||||
|
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
||||||
definition._mcl_blast_resistance=3
|
definition._mcl_blast_resistance=3
|
||||||
definition._mcl_hardness=3.5
|
definition._mcl_hardness=3.5
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user