Type alias conditionFormat

conditionFormat: { blocks?: ({ Block: Block; name: string } | { Blocks: Zone; checker: Block; includesAir?: boolean })[]; entities?: Entity[]; nbt?: { element: Entity | Block; path: NBTPath }[]; scores?: ({ entity: Entity | string; scoreboard: Scoreboard; value: RangeValue } | { entity: Entity | string; from: { entity: Entity | string; scoreboard: Scoreboard }; operation: "<" | "<=" | "=" | ">=" | ">"; scoreboard: Scoreboard })[] }

Type declaration

  • Optional blocks?: ({ Block: Block; name: string } | { Blocks: Zone; checker: Block; includesAir?: boolean })[]

    If the given block's name is equal to the given name
    Or if the blocks' block is the same as the checker's block

  • Optional entities?: Entity[]

    If the given entities exist

  • Optional nbt?: { element: Entity | Block; path: NBTPath }[]

    If the given nbts exist

  • Optional scores?: ({ entity: Entity | string; scoreboard: Scoreboard; value: RangeValue } | { entity: Entity | string; from: { entity: Entity | string; scoreboard: Scoreboard }; operation: "<" | "<=" | "=" | ">=" | ">"; scoreboard: Scoreboard })[]

    If score's conditions are matching

Generated using TypeDoc