实验性
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.
可选
Inserts a button into the Custom form. onClick is called when the button is pressed.
Can this form be shown to the player right now?
Closes the form. Throws an error if the form is not open.
Adds a close "X" button to the form.
Inserts a divider (i.e. a line) into the Custom form.
Inserts a dropdown into the Custom form with the provided items. The value is based on the items value that selected.
Inserts a label (i.e. medium sized text) into the Custom form.
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.
Creates a slider that lets players pick a number between minValue and maxValue. value must be client writable.
Inserts a space into the Custom form.
Inserts a text field into the Custom for that players can enter text into.
Inserts an on/off toggle that players can interact with into the Custom form.
静态
Creates a Custom form to show to the player. Use this instead of a constructor.
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.