Interface EntityHurtFunction

Function used in "EntityHurt" callback.

  • Parameters

    • attackerUid: number

      entity that caused damage, determines actor of damage source, -1 otherwise

    • entityUid: number
    • damageValue: number

      produced damage value in half-hearts

    • damageType: number

      existing Entity.DamageSource or any inclusive value between 25 and 32

    • armorReducesDamage: boolean

      if true, damage can be reduced by armor

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.