@minecraft/server-ui
    Preparing search index...

    Class CustomFormBeta

    A customizable form that lets you put buttons, labels, toggles, dropdowns, sliders, and more into a form! Built on top of Observable, the form will update when the Observables' value changes.

    Index

    Constructors

    Methods

    • Beta

      Returns boolean

      Can this form be shown to the player right now?

    • Beta

      Returns void

      Closes the form. Throws an error if the form is not open.

    • Beta

      Returns CustomForm

      Adds a close "X" button to the form.

    • Beta

      Returns Promise<void>

      Shows the form to the player. Will throw errors if the form is currently being shown or if another behavior pack is showing a form.