Preview
@minecraft/common (Optional in Manifest Details)
{
"module_name": "@minecraft/common",
"version": "1.0.0"
}
@minecraft/server (Required in Manifest Details)
{
"module_name": "@minecraft/server",
"version": "2.0.0"
}
Install type definition for @minecraft/server-ui
module using npm:
npm i @minecraft/server-ui@2.0.0-rc.1.21.90-preview.25
Builds a simple player form with buttons that let the player take action.
Returns data about the player results from a modal action form.
Base type for a form response.
Builds a simple two-button modal dialog.
Returns data about the player results from a modal message form.
Used to create a fully customizable pop-up form for a player.
Returns data about player responses to a modal form.
An interface that is passed into @minecraft/Server-ui.ModalFormData.dropdown to provide additional options for the dropdown creation.
An interface that is passed into @minecraft/Server-ui.ModalFormData.slider to provide additional options for the slider creation.
An interface that is passed into @minecraft/Server-ui.ModalFormData.textField to provide additional options for the textfield creation.
An interface that is passed into @minecraft/Server-ui.ModalFormData.toggle to provide additional options for the toggle creation.
The
@minecraft/server-ui
module contains types for expressing simple dialog-based user experiences.Manifest Details