Merge pull request #62 from hdastwb/connect_sides

add tube routing support
This commit is contained in:
RealBadAngel 2013-07-22 23:38:39 -07:00
commit e38f6f0983
4 changed files with 10 additions and 2 deletions

@ -36,6 +36,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
@ -82,6 +83,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),

@ -41,6 +41,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
@ -87,6 +88,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),

@ -41,6 +41,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
@ -86,6 +87,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),

@ -11,8 +11,10 @@ tubes_properties = {insert_object=function(pos,node,stack,direction)
local inv=meta:get_inventory()
return inv:room_for_item("main",stack)
end,
input_inventory="main"}
input_inventory="main",
connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1},
}
chest_can_dig = function(pos,player)
local meta = minetest.env:get_meta(pos);
local inv = meta:get_inventory()