| Name | entity loads crossbow |
| Event Lines | <entity> loads crossbow |
| Triggers | when a living entity loads a crossbow with a projectile. |
| Generated Examples | after entity loads crossbow:
on tropical_fish loads crossbow: |
| Has Player | when the entity is a player. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | when the entity is an NPC. |
| Switches | crossbow:<item> to only process the event if the crossbow is a specified item. |
| Contexts | <context.entity> returns the EntityTag that is loading the crossbow.
<context.crossbow> returns the ItemTag of the crossbow.
<context.consumes> returns true if the loading will consume a projectile item, otherwise false.
<context.hand> returns "HAND" or "OFF_HAND" depending on which hand is holding the crossbow item.
|
| Determine | "KEEP_ITEM" to keep the projectile item in the shooter's inventory. |
| 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 |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/events/EntityLoadCrossbowScriptEvent.java#L16 |