Iframe gallery call on_construct
This commit is contained in:
parent
12acb8801f
commit
e7fee828e9
|
@ -82,6 +82,7 @@ minetest.register_chatcommand("test_signs",{
|
|||
i = i + 1
|
||||
end
|
||||
end})
|
||||
local iframe_def = minetest.registered_nodes["mcl_itemframes:item_frame"]
|
||||
|
||||
minetest.register_chatcommand("test_iframes",{
|
||||
description="Generates a wall itemframes",
|
||||
|
@ -101,6 +102,7 @@ minetest.register_chatcommand("test_iframes",{
|
|||
local nn = minetest.get_node(fp)
|
||||
inv:set_stack("main",1,ItemStack(n))
|
||||
m:set_string("roll",math.random(0,7))
|
||||
if iframe_def.on_construct then iframe_def.on_construct(p) end
|
||||
--mcl_itemframes.update_item_entity(fp, nn,nn.param2)
|
||||
i = i + 1
|
||||
end
|
||||
|
@ -118,5 +120,6 @@ minetest.register_chatcommand("iframes_gallery",{
|
|||
local inv = m:get_inventory(p)
|
||||
inv:set_stack("main",1,ItemStack(itemnames[math.random(#itemnames)]))
|
||||
m:set_string("roll",math.random(0,7))
|
||||
if iframe_def.on_construct then iframe_def.on_construct(p) end
|
||||
end)
|
||||
end})
|
||||
|
|
Loading…
Reference in New Issue