Blockbench Reference Docs
    Preparing search index...
    interface CustomMenuItem {
        children?: MenuItem[] | ((context: any) => MenuItem[]);
        color?: string;
        condition?: ConditionResolvable;
        description?: string;
        icon: boolean | IconString | ((context: any) => boolean | IconString);
        id?: string;
        keybind?: string | Keybind;
        marked?: boolean | ((context: any) => boolean);
        name: string;
        searchable?: boolean;
        click?(context?: any, event?: Event): void;
    }
    Index

    Methods

    • Parameters

      • Optionalcontext: any
      • Optionalevent: Event

      Returns void

    Properties

    children?: MenuItem[] | ((context: any) => MenuItem[])
    color?: string
    description?: string
    icon: boolean | IconString | ((context: any) => boolean | IconString)
    id?: string
    keybind?: string | Keybind

    Keybind or string to display in the menu, won't work as an actual keybinding by default

    marked?: boolean | ((context: any) => boolean)

    If true, mark the menu item as the selected one (underlined text in default theme)

    name: string
    searchable?: boolean

    Adds a search bar to the menu or submenu