Commander API Documentation

website·Indexed 31 days ago

https://capi.un-known.xyz

Documentation for Commander API (v2.1.0), featuring ScriptEvents for controlling player health, size, and inventory, as well as spawning entities and items. Includes details on macros for velocity and scoreboards, form editors for JSON/ESON command generation, and tools for managing command sets.

Tokens
139.2K
Snippets
963
Records
1.4K
Agent score
52%

What's inside Commander API

  1. Overview of Form Button Actions

    Form actions are executed when a button is pressed within an Action Form or Message Form. These actions only trigger upon a button press; if the form is cancelled, no action is executed. For commands and target-based actions, the player who opened the form is treated as the executor/target by default if no specific target is provided.
  2. Overview of Commander API for Minecraft Bedrock Edition

    Commander API is a tool designed to extend the command capabilities of Minecraft Bedrock Edition. By leveraging ScriptAPI, it allows developers to implement complex logic and event detection that are not possible with vanilla commands alone.
  3. Introduction to Commander API Macros

    Macros in Commander API allow developers to replace long, complex command strings with concise placeholders. They are evaluated from the innermost nested macro outward, replacing placeholders with their resolved values before the final command is executed.
    # Complex raw command
    /titleraw @a actionbar {"rawtext":[{"selector":"*"},{"text":"'s money: "},{"score":{"objective":"money","name":"*"}}]}
    
    # Simplified version using Macros
    /execute as @a run scriptevent capi:actionbar <!name>'s money: <!score=money>
  4. Introduction to Commander API Macros

    Macros in Commander API allow developers to replace long, complex commands with concise placeholders. They are evaluated from the innermost nested macro outward, replacing specific tokens with dynamic values (such as player names or scores) before the final command is executed.
    # Traditional long command
    /titleraw @a actionbar {"rawtext":[{"selector":"*"},{"text":"'s money: "},{"score":{"objective":"money","name":"*"}}]}
    
    # Simplified version using Macros
    /execute as @a run scriptevent capi:actionbar <!name>'s money: <!score=money>
  5. Overview of Commander API for Minecraft Bedrock Edition

    Commander API is a tool designed to extend the command capabilities of Minecraft Bedrock Edition. By leveraging ScriptAPI, it allows developers to implement complex logic and event detection that are not possible with vanilla commands alone.
  6. Overview of Commander API

    Commander API is a wrapper library for the Minecraft Script API. It is designed to simplify complex script writing and provide intuitive event processing and custom feature additions, enabling advanced functionality beyond standard command capabilities while reducing the number of commands required for implementation.
  7. Overview of Commander-API Event Categories

    Commander-API events are divided into three primary categories based on how they are triggered and tracked:

    1. Trigger Events: Triggered once when a specific action occurs.
    2. Tick Events (Score-based): Update information every tick, managed via scoreboards.
    3. Tick Events (Tag-based): Monitor state every tick and apply or remove tags accordingly.
  8. Overview of Commander API for Minecraft Bedrock Edition

    Commander API is a behavior pack designed to significantly extend the command system of Minecraft Bedrock Edition. By leveraging ScriptAPI, it enables advanced functionality beyond vanilla commands, including:

    • Event Systems: Detect player actions and world changes.
    • Macro Functionality: Use dynamic values and calculations within commands.
    • Extended Commands: Perform inventory manipulation, UI display, and advanced entity control.
    • Customizable Settings: Enable/disable features and rename events.
  9. Overview of playerStateTags automatic tagging

    The playerStateTags system monitors various player states every tick and automatically adds or removes corresponding tags. This allows developers to target players based on their current status using standard selector tags.
  10. Overview of Commander API for Minecraft Bedrock

    Commander API (v2.1.0) is a behavior pack that significantly extends the Minecraft Bedrock Edition command system by leveraging ScriptAPI. It enables functionality beyond vanilla commands, including:

    • Event Systems: Detect player actions and world changes.
    • Macro Functionality: Use dynamic values and calculations within commands.
    • Extended Commands: Advanced entity control, inventory manipulation, and UI display.
    • Customizable Settings: Ability to toggle features and rename events.
  11. Overview of Commander API for Minecraft Bedrock Edition

    Commander API is a tool designed to extend the command capabilities of Minecraft Bedrock Edition. By leveraging ScriptAPI, it allows developers to implement complex logic and event detection that are not possible with vanilla commands.
  12. Introduction to Commander API Macros

    Macros in Commander API allow developers to replace long, complex commands with concise, readable placeholders. They are particularly useful for dynamic content like player names or scoreboard values, which would otherwise require verbose JSON structures (e.g., rawtext).
    # Traditional verbose command
    /titleraw @a actionbar {"rawtext":[{"selector":"*"},{"text":"'s money: "},{"score":{"objective":"money","name":"*"}}]}
    
    # Simplified version using Macros
    /execute as @a run scriptevent capi:actionbar <!name>'s money: <!score=money>