minetest.show_formspec(playername, formname, formspec)
(New in 0.4.5)
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_fieldscallbacks when and if the player submits the form.
- formspec — The formspec describing the form to show the player.