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

    CommandResult

    What Player.runCommand, Entity.runCommand and Dimension.runCommand return.

    1 property
    On this page

    Interface in @minecraft/server

    What Player.runCommand, Entity.runCommand and Dimension.runCommand return.

    import type { CommandResult } from '@minecraft/server';

    read-only

    readonly successCount: number;

    How many targets the command succeeded on. Basalt runs the command on the player’s connection after the call returns, so this is 1 once it’s queued.

    Entity.runCommand, Player.runCommand, Player.runCommandAsync, Dimension.runCommand