Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-255

Call an event for Invulnerable Entities

XMLWordPrintable

      Hi, I propose an interact event of some sort get called for invulnerable entities.

      At the moment, if an Entity has the Invulnerable NBT tag, and a client sends the left clicking packet on that entity, the Entity.damageEntity(..) method checks if that is the case, if it is, it simply returns false (doesn't call the damage event), thus leaving no evidence that the player actually interacted with the entity (other than packet sniffing). This also applies to the maxNoDamageTicks.

      I propose a new event be created specifically for this type of action. I would NOT recommend this call the PlayerInteractEntityEvent as this may confuse some plugins which would expect the event only to be called when the entity is right clicked.

            Unassigned Unassigned
            SupaHam Ali Moghnieh
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: