Skip to main content

Block.PopResourcesFunction

Function used to determine when block is broken by environment (explosions, pistons, etc.).

Callable


  • Parameters

    • blockCoords: Vector

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

    • block: BlockState | Tile

      information about block that is broken (since 3.1.1b127 passes BlockState)

    • region: BlockSource

      BlockSource object

    • explosionRadius: number
    • i: number

      unknown parameter, supposed to always be zero

    Returns void