diff options
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 12892e5b5..74b3d3ba5 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1676,6 +1676,13 @@ methods: - index(x, y, z): returns the index of an absolute position in a flat array starting at 1 ^ useful for things like VoxelManip, raw Schematic specifiers, PerlinNoiseMap:get2d/3dMap, and so on - indexp(p): same as above, except takes a vector +- position(i): returns the absolute position vector corresponding to index i +- contains(x, y, z): check if (x,y,z) is inside area formed by MinEdge and MaxEdge +- containsp(p): same as above, except takes a vector +- containsi(i): same as above, except takes an index +- iter(minx, miny, minz, maxx, maxy, maxz): returns an iterator that returns indices + ^ from (minx,miny,minz) to (maxx,maxy,maxz) in the order of [z [y [x]]] +- iterp(minp, maxp): same as above, except takes a vector Mapgen objects --------------- |