| Name | projectile collides with entity |
| Event Lines | <projectile> collides with <entity> |
| Triggers | N/A - use projectile hits with the 'entity' switch on versions above 1.19. |
| Generated Examples | on projectile collides with pillager:
after arrow collides with monster: |
| Has Player | When the entity collided with is a player. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | When the entity collided with is a NPC. |
| Contexts | <context.projectile> returns the projectile that is colliding.
<context.entity> returns the entity that was collided with.
|
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Paper |
| Requires | Paper |
| Deprecated | Use 'projectile hits' with the 'entity' switch on versions above 1.19. |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/events/ProjectileCollideScriptEvent.java#L17 |