diff options
author | Matthew I <matttpt@gmail.com> | 2012-07-28 15:27:31 -0400 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-08-12 16:44:55 +0300 |
commit | 548da26ddc1e38bffbc05c5577fe9a60476f8e71 (patch) | |
tree | 6b12fa69b4b0fc2097bcb66c1642ef5077200be3 /doc | |
parent | 8e0ac70c4ddfffedcd9e85b409360b4356d033c4 (diff) | |
download | minetest-548da26ddc1e38bffbc05c5577fe9a60476f8e71.tar.gz minetest-548da26ddc1e38bffbc05c5577fe9a60476f8e71.tar.bz2 minetest-548da26ddc1e38bffbc05c5577fe9a60476f8e71.zip |
Extend Lua API in order to implement chat commands
minetest.get_server_status()
minetest.request_shutdown()
EnvRef:clear_objects()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 46ea3a86e..dea472f3f 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -928,6 +928,10 @@ minetest.after(time, func, param) ^ Call function after time seconds ^ param is optional; to pass multiple parameters, pass a table. +Server: +minetest.request_shutdown() -> request for server shutdown +minetest.get_server_status() -> server status string + Random: minetest.get_connected_players() -> list of ObjectRefs minetest.hash_node_position({x=,y=,z=}) -> 48-bit integer @@ -1017,6 +1021,8 @@ methods: ^ nodenames: eg. {"ignore", "group:tree"} or "default:dirt" - get_perlin(seeddiff, octaves, persistence, scale) ^ Return world-specific perlin noise (int(worldseed)+seeddiff) +- clear_objects() + ^ clear all objects in the environments Deprecated: - add_rat(pos): Add C++ rat object (no-op) - add_firefly(pos): Add C++ firefly object (no-op) |