An interface that is passed into @minecraft/Server-ui.ModalFormData.dropdown to provide additional options for the dropdown creation.
export interface ModalFormDataDropdownOptions { defaultValueIndex?: number; tooltip?: minecraftserver.RawMessage | string;} Copy
export interface ModalFormDataDropdownOptions { defaultValueIndex?: number; tooltip?: minecraftserver.RawMessage | string;}
Optional
The default selected item index. It will be zero in case of not setting this value.
It will show an exclamation icon that will display a tooltip if it is hovered.
An interface that is passed into @minecraft/Server-ui.ModalFormData.dropdown to provide additional options for the dropdown creation.
Source