mirror of
https://github.com/minetest-mods/more_chests.git
synced 2025-01-09 08:50:18 +01:00
Update dropbox.lua
This commit is contained in:
parent
7eb218a63d
commit
eb89f2658e
17
dropbox.lua
17
dropbox.lua
@ -10,7 +10,22 @@ minetest.register_node("more_chests:dropbox", {
|
|||||||
tiles = {"default_chest_top.png", "default_chest_top.png", "dropbox_right.png",
|
tiles = {"default_chest_top.png", "default_chest_top.png", "dropbox_right.png",
|
||||||
"default_chest_side.png", "default_chest_side.png", "dropbox_front.png"},
|
"default_chest_side.png", "default_chest_side.png", "dropbox_front.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice = 1, tubedevice_receiver = 1},
|
||||||
|
-- Pipeworks
|
||||||
|
tube = {
|
||||||
|
insert_object = function(pos, node, stack, direction)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
return inv:add_item("main", stack)
|
||||||
|
end,
|
||||||
|
can_insert = function(pos, node, stack, direction)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
return inv:room_for_item("main", stack)
|
||||||
|
end,
|
||||||
|
input_inventory = "main",
|
||||||
|
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
|
||||||
|
},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
after_place_node = function(pos, placer)
|
after_place_node = function(pos, placer)
|
||||||
|
Loading…
Reference in New Issue
Block a user