Перейти к основному содержанию

Callback.BreakBlockFunction

Function used in "BreakBlock" callback.

Callable


  • Parameters

    • region: BlockSource
    • coords: ItemUseCoordinates

      coordinates where the block is placed and side from where it is placed

    • block: Tile

      block that is placed

    • dropAllowed: boolean
    • playerUid: number

      player entity unique numeric ID

    • item: ItemInstance

      item that was in the player's hand when it breaked the block

    Returns void