From 4cc98d7add7b697ac302a6136bbeb95ef78cec45 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 22 Jul 2012 17:10:58 +0300 Subject: minetest.register_on_player_receive_fields() --- doc/lua_api.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/lua_api.txt') 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) -- cgit v1.2.3