#(pturps) Can I have an NPC pick up items from the ground?
13 messages · Page 1 of 1 (latest)
(pturps) Can I have an NPC pick up items from the ground?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Would I need to use the Event "block drops item from breaking"?
https://meta.denizenscript.com/Docs/Search/dropped_item#block drops item from breaking
Search for 'dropped_item'
Can I determine if this event fired because of the NPC and not a player?
Player
<entity> picks up <item> <entity> takes <item>
when an entity picks up an item.
when the entity picking up the item is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
when the entity picking up the item is an npc.
<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.
"ITEM:<ItemTag>" to change the item being picked up.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
You can use this for npcs picking up items and checking them.
Thanks for the suggestion.
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@left basin