mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 05:42:33 +01:00
Merge pull request #62 from hdastwb/connect_sides
add tube routing support
This commit is contained in:
commit
e38f6f0983
@ -36,6 +36,7 @@ minetest.register_node(
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("src",stack)
|
return inv:room_for_item("src",stack)
|
||||||
end,
|
end,
|
||||||
|
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
|
||||||
},
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -82,6 +83,7 @@ minetest.register_node(
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("src",stack)
|
return inv:room_for_item("src",stack)
|
||||||
end,
|
end,
|
||||||
|
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
|
||||||
},
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
@ -41,6 +41,7 @@ minetest.register_node(
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("src",stack)
|
return inv:room_for_item("src",stack)
|
||||||
end,
|
end,
|
||||||
|
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
|
||||||
},
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -87,6 +88,7 @@ minetest.register_node(
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("src",stack)
|
return inv:room_for_item("src",stack)
|
||||||
end,
|
end,
|
||||||
|
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
|
||||||
},
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
@ -41,6 +41,7 @@ minetest.register_node(
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("src",stack)
|
return inv:room_for_item("src",stack)
|
||||||
end,
|
end,
|
||||||
|
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
|
||||||
},
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
@ -86,6 +87,7 @@ minetest.register_node(
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("src",stack)
|
return inv:room_for_item("src",stack)
|
||||||
end,
|
end,
|
||||||
|
connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
|
||||||
},
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
@ -11,8 +11,10 @@ tubes_properties = {insert_object=function(pos,node,stack,direction)
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
return inv:room_for_item("main",stack)
|
return inv:room_for_item("main",stack)
|
||||||
end,
|
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)
|
chest_can_dig = function(pos,player)
|
||||||
local meta = minetest.env:get_meta(pos);
|
local meta = minetest.env:get_meta(pos);
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
Loading…
Reference in New Issue
Block a user