| Name | vehicle collides with entity |
| Event Lines | vehicle collides with entity
vehicle collides with <entity>
<vehicle> collides with entity
<vehicle> collides with <entity> |
| Triggers | when a vehicle collides with an entity. |
| Example | on vehicle collides with entity:
|
| Example | on minecart collides with sheep:
|
| Example |
on vehicle collides with entity type:creeper:
- announce "A <context.vehicle.entity_type> collided with a creeper!"
|
| Has Player | when a vehicle collides with a player. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | when a vehicle collides with an NPC. |
| Switches | type:<entity> to only process the event if the colliding entity matches the EntityTag matcher input. |
| Contexts | <context.vehicle> returns the EntityTag of the vehicle.
<context.entity> returns the EntityTag of the entity the vehicle has collided with.
<context.pickup> returns whether the vehicle can pick up the entity.
|
| Determine | "PICKUP:<ElementTag(Boolean)>" to set whether the vehicle is allowed to pick up the entity or not. |
| 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 | Vehicle |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/vehicle/VehicleCollidesEntityScriptEvent.java#L16 |