@minecraft/server
    Preparing search index...

    Class ProjectileHitBlockAfterEventBeta

    Contains information related to a projectile hitting a block.

    Index

    Properties

    dimension: Dimension

    Dimension where this projectile hit took place.

    hitVector: Vector3

    Direction vector of the projectile as it hit a block.

    location: Vector3

    Location where the projectile hit occurred.

    projectile: Entity

    Entity for the projectile that hit a block.

    source?: Entity

    Optional source entity that fired the projectile.

    Methods

    • Beta

      Returns BlockHitInformation

      Contains additional information about the block that was hit by the projectile.

      This function can't be called in read-only mode.