@minecraft/server
    Preparing search index...

    Class PlayerBreakBlockBeforeEventSignal

    Manages callbacks that are connected to before a player breaks a block.

    Index

    Methods

    • Parameters

      Returns (arg0: PlayerBreakBlockBeforeEvent) => void

      Closure that is called with restricted-execution privilege.

      Adds a callback that will be called before a block is broken by a player.

      no-restricted-execution - This function can't be called in restricted-execution mode.

      early-execution-allowed - This function can be called in early-execution mode.

    • Parameters

      Returns void

      Removes a callback from being called before a player breaks a block.

      no-restricted-execution - This function can't be called in restricted-execution mode.

      early-execution-allowed - This function can be called in early-execution mode.