minetest.show_formspec

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.show_formspec(playername, formname, formspec)

(New in 0.4.5)

Description

Shows an arbitrary dialog to the named player described by the given formspec. If the form has a submit button and the player activates the button, on_player_receive_fields callbacks will be called with the player, the given formname, and the values of all of the form's fields.

  • playername — The name of the player on whose screen to show the form.
  • formname — Value that will be passed to on_player_receive_fields callbacks when and if the player submits the form.
  • formspec — The formspec describing the form to show the player.
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox