forked from Mirrorlandia_minetest/mesecons
Tweak delayer times
This commit is contained in:
parent
686bb6b434
commit
36c0090444
@ -140,19 +140,19 @@ mesecon.delayer_signal_change = function(pos, node)
|
|||||||
local time
|
local time
|
||||||
if node.name=="mesecons_delayer:delayer_off_1" then
|
if node.name=="mesecons_delayer:delayer_off_1" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_1"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_1"})
|
||||||
time=0.5
|
time=0.1
|
||||||
end
|
end
|
||||||
if node.name=="mesecons_delayer:delayer_off_2" then
|
if node.name=="mesecons_delayer:delayer_off_2" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_2"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_2"})
|
||||||
time=1
|
time=0.3
|
||||||
end
|
end
|
||||||
if node.name=="mesecons_delayer:delayer_off_3" then
|
if node.name=="mesecons_delayer:delayer_off_3" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_3"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_3"})
|
||||||
time=1.5
|
time=0.5
|
||||||
end
|
end
|
||||||
if node.name=="mesecons_delayer:delayer_off_4" then
|
if node.name=="mesecons_delayer:delayer_off_4" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_4"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_on_4"})
|
||||||
time=2
|
time=1
|
||||||
end
|
end
|
||||||
minetest.after(time, mesecon.delayer_turnon, {pos=pos})
|
minetest.after(time, mesecon.delayer_turnon, {pos=pos})
|
||||||
|
|
||||||
@ -165,19 +165,19 @@ mesecon.delayer_signal_change = function(pos, node)
|
|||||||
local time
|
local time
|
||||||
if node.name=="mesecons_delayer:delayer_on_1" then
|
if node.name=="mesecons_delayer:delayer_on_1" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_1"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_1"})
|
||||||
time=0.5
|
time=0.1
|
||||||
end
|
end
|
||||||
if node.name=="mesecons_delayer:delayer_on_2" then
|
if node.name=="mesecons_delayer:delayer_on_2" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_2"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_2"})
|
||||||
time=1
|
time=0.3
|
||||||
end
|
end
|
||||||
if node.name=="mesecons_delayer:delayer_on_3" then
|
if node.name=="mesecons_delayer:delayer_on_3" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_3"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_3"})
|
||||||
time=1.5
|
time=0.5
|
||||||
end
|
end
|
||||||
if node.name=="mesecons_delayer:delayer_on_4" then
|
if node.name=="mesecons_delayer:delayer_on_4" then
|
||||||
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_4"})
|
minetest.env:add_node(pos, {name="mesecons_delayer:delayer_off_4"})
|
||||||
time=2
|
time=1
|
||||||
end
|
end
|
||||||
minetest.after(time, mesecon.delayer_turnoff, {pos=pos})
|
minetest.after(time, mesecon.delayer_turnoff, {pos=pos})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user