mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2025-01-09 17:30:24 +01:00
parent
de765f7f7b
commit
67875f9c6e
@ -25,11 +25,14 @@ local function timegate_activate(pos, node)
|
|||||||
node.name = "moremesecons_timegate:timegate_on"
|
node.name = "moremesecons_timegate:timegate_on"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
mesecon.receptor_on(pos)
|
mesecon.receptor_on(pos)
|
||||||
minetest.after(time, function(pos, node)
|
minetest.after(time, function()
|
||||||
|
local node = minetest.get_node(pos)
|
||||||
|
if node.name == "moremesecons_timegate:timegate_on" then
|
||||||
mesecon.receptor_off(pos)
|
mesecon.receptor_off(pos)
|
||||||
node.name = "moremesecons_timegate:timegate_off"
|
node.name = "moremesecons_timegate:timegate_off"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
end, pos, node)
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab
|
boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab
|
||||||
|
Loading…
Reference in New Issue
Block a user