feat: iron furnace hopper compat
This commit is contained in:
parent
9c0668b996
commit
d12529ab2f
@ -293,13 +293,21 @@ if industrialtest.mtgAvailable then
|
|||||||
return not (inv:get_list("src")[1]:get_count()>0 or inv:get_list("fuel")[1]:get_count()>0 or inv:get_list("dst")[1]:get_count()>0)
|
return not (inv:get_list("src")[1]:get_count()>0 or inv:get_list("fuel")[1]:get_count()>0 or inv:get_list("dst")[1]:get_count()>0)
|
||||||
end
|
end
|
||||||
elseif industrialtest.mclAvailable then
|
elseif industrialtest.mclAvailable then
|
||||||
definition.groups={pickaxey=1}
|
definition.groups={
|
||||||
|
pickaxey=1,
|
||||||
|
container=2
|
||||||
|
}
|
||||||
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
||||||
industrialtest.internal.mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
|
industrialtest.internal.mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
|
||||||
end
|
end
|
||||||
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
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
|
||||||
|
definition._mcl_hoppers_on_try_pull = mcl_furnaces.hoppers_on_try_pull
|
||||||
|
definition._mcl_hoppers_on_try_push = mcl_furnaces.hoppers_on_try_push
|
||||||
|
definition._mcl_hoppers_on_after_push = function(pos)
|
||||||
|
minetest.get_node_timer(pos):start(1.0)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
minetest.register_node("industrialtest:iron_furnace",definition)
|
minetest.register_node("industrialtest:iron_furnace",definition)
|
||||||
definition=table.copy(definition)
|
definition=table.copy(definition)
|
||||||
@ -318,7 +326,9 @@ definition.drop="industrialtest:iron_furnace"
|
|||||||
definition.on_timer=ironFurnace.activeOnTimer
|
definition.on_timer=ironFurnace.activeOnTimer
|
||||||
if industrialtest.mclAvailable then
|
if industrialtest.mclAvailable then
|
||||||
definition.groups={
|
definition.groups={
|
||||||
not_in_creative_inventory=1
|
not_in_creative_inventory=1,
|
||||||
|
pickaxey=1,
|
||||||
|
container=2
|
||||||
}
|
}
|
||||||
definition._doc_items_create_entry=false
|
definition._doc_items_create_entry=false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user