mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 15:23:43 +01:00
funnel got inventory state command
This commit is contained in:
parent
e39cd59562
commit
0e1bd6f52d
@ -92,7 +92,7 @@ for _,color in ipairs({"green", "amber", "red"}) do
|
||||
end,
|
||||
|
||||
paramtype = "light",
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = 10,
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly=0, not_in_creative_inventory=1},
|
||||
|
@ -147,7 +147,13 @@ tubelib.register_node("tubelib_addons1:funnel", {}, {
|
||||
end,
|
||||
|
||||
on_recv_message = function(pos, topic, payload)
|
||||
if topic == "state" then
|
||||
local meta = minetest.get_meta(pos)
|
||||
return tubelib.get_inv_state(meta, "main")
|
||||
else
|
||||
return "unsupported"
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user