#(pturps) Can I have an NPC pick up items from the ground?

13 messages · Page 1 of 1 (latest)

left basin
#

Can I have an NPC pick up items from the ground? e.g. Wheat that my farmer NPC has harvested.

sharp socketBOT
#

(pturps) Can I have an NPC pick up items from the ground?

sharp socketBOT
#

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.

left basin
#

Can I determine if this event fired because of the NPC and not a player?

fluid gull
#

/npc pickupitems is a command for citizens.

#

!e entity picks up item

old fieldBOT
# fluid gull !e entity picks up item
Group

Player

Event Lines

<entity> picks up <item> <entity> takes <item>

Triggers

when an entity picks up an 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.

Context

<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.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

fluid gull
#

You can use this for npcs picking up items and checking them.

left basin
#

Thanks for the suggestion.

spring harnessBOT
#
Thread Closing Reminder

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