Script API - v1.19.70
    Preparing search index...

    Contains information related to an entity hitting (melee attacking) another entity.

    Index

    Constructors

    Properties

    Constructors

    Properties

    entity: Entity

    Entity that made a hit/melee attack.

    hitBlock?: Block

    Block that was hit by the attack, or undefined if the hit attack did not hit a block. If both hitEntity and hitBlock are undefined, then the entity basically swiped into the air.

    hitEntity?: Entity

    Entity that was hit by the attack, or undefined if the hit attack did not hit an entity. If both hitEntity and hitBlock are undefined, then the entity basically swiped into the air.