-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
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.