Updated NonStandardLuaLibs (markdown)

Florian Nücke 2013-12-07 04:40:53 -08:00
parent f2029dc01f
commit 151a102459

@ -63,7 +63,7 @@ The [original functions](http://www.lua.org/manual/5.2/manual.html#6.9) from the
- `os.rename` is an alias for `filesystem.rename`.
- `os.setlocale` is *not* available.
- `os.time` has been reimplemented to return the ingame time since the world has been created.
Note that this time in 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...
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.
Some new functions that kind of fall into this category are available in [[the computer API|API/Computer]].