Updated NonStandardLuaLibs (markdown)

Florian Nücke 2014-01-05 12:50:43 -08:00
parent 857f0ff9b3
commit 917d1512e3

@ -66,4 +66,7 @@ The [original functions](http://www.lua.org/manual/5.2/manual.html#6.9) from the
Note that this time is in "in-game seconds". To get the number of game ticks since the world was created, multiply it with `1000/60/60` (since there are 24000 ticks in a day) and subtract 6000. This offset of 6000 is not arbitrary, it ensures that 6 o'clock AM is actually that. Minecraft somehow thinks six o'clock in the morning is zero - probably because that's "when" a new game starts...
- `os.tmpname` has been reimplemented to generate an unused name in the `/tmp` mount.
One additional function has been added:
- `os.sleep(seconds: number)` which allows pausing a script for the specified amount of time. Note that signals will still be processed by event handlers while the sleep is active, i.e. you cannot pull signals that were accumulated during the sleep after it ended, since no signals will remain in the queue (or at least not all of them).
Some new functions that kind of fall into this category are available in [[the computer API|API/Computer]].