| Name | block dispenses item |
| Event Lines | <block> dispenses <item> |
| Triggers | when a block dispenses a single item. |
| Generated Examples | after block dispenses mule_spawn_egg:
on hopper dispenses item: |
| Contexts | <context.location> returns the LocationTag of the dispenser.
<context.item> returns the ItemTag of the item being dispensed.
<context.velocity> returns a LocationTag vector of the velocity the item will be shot at.
|
| Determine | LocationTag to set the velocity the item will be shot at.
"ITEM:<ItemTag>" to set the item being shot. |
| 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 | Block |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/block/BlockDispensesScriptEvent.java#L15 |