Interface CommandBlock

    • Method Detail

      • execute

        void execute()
        Executes the currently stored command.
      • storedCommand

        default Value.Mutable<String> storedCommand()
        Gets the currently stored command.
        The command
      • successCount

        default Value.Mutable<Integer> successCount()
        Gets the success count of the last executed command.

        The success count is the number of times the most recently used command of this command block succeeded. Most commands can only succeed once per execution, but certain commands (such as those which accept players as arguments) can succeed multiple times, and this value will be set accordingly. This success count can also be polled via a redstone comparator.

        The last success count
      • doesTrackOutput

        default Value.Mutable<Boolean> doesTrackOutput()
        Gets whether this command block will keep track of the output from the last command it executed.
        Whether the command output is tracked