Script API - v1.19.70
    Preparing search index...

    Builds a simple player form with buttons that let the player take action.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Beta

      Parameters

      • bodyText: string

      Returns ActionFormData

      Method that sets the body text for the modal form.

    • Beta

      Parameters

      • text: string
      • OptionaliconPath: string

      Returns ActionFormData

      Adds a button to this form with an icon from a resource pack.

    • Beta

      Parameters

      • player: Player

        Player to show this dialog to.

      Returns Promise<ActionFormResponse>

      Creates and shows this modal popup form. Returns asynchronously when the player confirms or cancels the dialog.

      This function can throw errors.

    • Beta

      Parameters

      • titleText: string

      Returns ActionFormData

      This builder method sets the title for the modal dialog.