]> git.lizzy.rs Git - minetest.git/blobdiff - doc/lua_api.txt
Add missing doc for minetest.get_us_time()
[minetest.git] / doc / lua_api.txt
index d25cd741c03ddd227be5cfb27a3bfdda47efbb67..37eb7e79685b4ceb7852e43ec1b1538d95d58068 100644 (file)
@@ -258,6 +258,10 @@ Advanced texture modifiers:
     Crops the texture to a frame of a vertical animation.
     Example: default_torch_animated.png^[verticalframe:16:8
 
+  [mask:<file>
+    Apply a mask to the base image.
+    The mask is applied using binary AND.
+
 Sounds
 -------
 Only OGG Vorbis files are supported.
@@ -1272,6 +1276,8 @@ minetest.formspec_escape(string) -> string
 ^ escapes characters [ ] \ , ;  that can not be used in formspecs
 minetest.is_yes(arg)
 ^ returns whether arg can be interpreted as yes
+minetest.get_us_time()
+^ returns time with microsecond precision
 
 minetest namespace reference
 -----------------------------
@@ -2204,7 +2210,7 @@ treedef={
   thin_branches, - boolean true -> use thin (1 node) branches
   fruit,         - string  fruit node name
   fruit_chance,  - num     chance (0-100) to replace leaves with fruit node
-  seed,          - num     random seed
+  seed,          - num     random seed; if no seed is provided, the engine will create one
   }
 
 Key for Special L-System Symbols used in Axioms