diff options
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b0c1b41a3..94fc78b2e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -891,8 +891,10 @@ minetest.get_inventory(location) -> InvRef minetest.create_detached_inventory(name, callbacks) -> InvRef ^ callbacks: See "Detached inventory callbacks" ^ Creates a detached inventory. If it already exists, it is cleared. -minetest.show_formspec(playername, formspec) +minetest.show_formspec(playername, formname, formspec) ^ playername: name of player to show formspec +^ formname: name passed to on_player_receive_fields callbacks +^ should follow "modname:<whatever>" naming convention ^ formspec: formspec to display Item handling: |