aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-22 17:10:58 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-22 17:40:48 +0300
commit4cc98d7add7b697ac302a6136bbeb95ef78cec45 (patch)
treeefcdd9352f25c99557a1acd5177b6d586ecba881 /doc/lua_api.txt
parent506203345ba2795aa0af68a434f4b77cf50e664a (diff)
downloadhax-minetest-server-4cc98d7add7b697ac302a6136bbeb95ef78cec45.tar.gz
hax-minetest-server-4cc98d7add7b697ac302a6136bbeb95ef78cec45.zip
minetest.register_on_player_receive_fields()
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index d5797d171..b6168c34c 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -766,6 +766,11 @@ minetest.register_on_joinplayer(func(ObjectRef))
minetest.register_on_leaveplayer(func(ObjectRef))
^ Called when a player leaves the game
minetest.register_on_chat_message(func(name, message))
+^ Called always when a player says something
+minetest.register_on_player_receive_fields(func(player, formname, fields))
+^ Called when a button is pressed in player's inventory form
+^ Newest functions are called first
+^ If function returns true, remaining functions are not called
Other registration functions:
minetest.register_chatcommand(cmd, chatcommand definition)