Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Commands

    CustomCommandParamType

    1 min read · 3 sections
    On this page

    Enum in @minecraft/server

    What a custom command’s parameter takes.

    import { CustomCommandParamType } from '@minecraft/server';
    import { CustomCommandParamType } from '@minecraft/server';
    const value: CustomCommandParamType = CustomCommandParamType.Boolean;
    console.log(value); // "Boolean"
    import { CustomCommandParamType } from '@minecraft/server';
    const value = CustomCommandParamType.Boolean;
    console.log(value); // "Boolean"
    Name Value Description
    Boolean "Boolean"
    Integer "Integer"
    Float "Float" Basalt’s client hint for it is a string.
    String "String"
    EntitySelector "EntitySelector" Players only, in Basalt.
    PlayerSelector "PlayerSelector"
    Location "Location"
    BlockType "BlockType"
    ItemType "ItemType"
    Enum "Enum" One of the values given to CustomCommandRegistry.registerEnum.
    EntityType "EntityType"

    CustomCommandParameter.type