| Name | entity picks up item |
| Event Lines | <entity> picks up <item>
<entity> takes <item> |
| Triggers | when an entity picks up an item. |
| Generated Examples | after entity picks up item:
after entity takes nether_brick_stairs: on entity picks up salmon_spawn_egg: on player takes item: |
| Has Player | when the entity picking up the item is a player. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | when the entity picking up the item is an npc. |
| Contexts | <context.item> returns an ItemTag of the item being picked up.
<context.entity> returns an EntityTag of the item entity being picked up.
<context.pickup_entity> returns an EntityTag of the entity picking up the item.
<context.location> returns a LocationTag of the item's location.
|
| Determine | "ITEM:<ItemTag>" to change the item being picked up. |
| 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 | Player |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityPicksUpItemScriptEvent.java#L20 |