What Player.runCommand, Entity.runCommand and Dimension.runCommand return.
Interface in @minecraft/server
What Player.runCommand, Entity.runCommand and Dimension.runCommand return.
import type { CommandResult } from '@minecraft/server';Properties
Section titled “Properties”successCount
Section titled “successCount”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.
Used by
Section titled “Used by”Entity.runCommand, Player.runCommand, Player.runCommandAsync, Dimension.runCommand