minetest-mod-mesecons/mesecons_luacontroller
Ciaran Gultnieks 9eda62df7b Add timer() function/event (node timer based) to luacontroller
This adds a timer(<seconds>) function, which causes an event of type
"timer" to be fired after that many seconds has elapsed.

Because it's node timer based, it works properly across server restarts
and block unloading. Thus, simplest example, a blinky plant replacement
with a 10 second period:

if event.type == "program" then
  timer(10)
elseif event.type == "timer" then
  port.a = not port.a
  timer(10)
end
2014-03-11 22:50:48 +00:00
..
textures Move textures into their mods 2014-01-10 13:13:02 -05:00
depends.txt Add luacontroller, a microcontroller that you can code in lua. 2013-01-13 00:18:25 +01:00
init.lua Add timer() function/event (node timer based) to luacontroller 2014-03-11 22:50:48 +00:00