#(helicas) Edit item for an item that is picked up
1 messages · Page 1 of 1 (latest)
(helicas) Edit item for an item that is picked up
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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!e entity picks up item
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 the ItemTag.
<context.entity> returns the EntityTag of the item being picked up.
<context.pickup_entity> returns the EntityTag of the entity picking up the item.
<context.location> returns a LocationTag of the item's location.
"ITEM:" + ItemTag to changed 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.
Determine
"ITEM:" + ItemTag to change the item being picked up.
!t <PropertyHolderObject.with[<mechanism>=<value>;...]>
Returns a copy of the object with mechanism adjustments applied.
Be careful with dynamic inputs, they may break from escaping flaws.
Consider using !tag PropertyHolderObject.with_single instead.
properties
PropertyHolderObject
propertyholderobject can be an itemtag
so, you'd use
on player picks up item:
- determine ITEM:<context.item.with[display=CoolName;lore=CoolLore]>
right, but how would I then apply the changes to the correct item that was just picked up?
!e entity picks up item
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 the ItemTag.
<context.entity> returns the EntityTag of the item being picked up.
<context.pickup_entity> returns the EntityTag of the entity picking up the item.
<context.location> returns a LocationTag of the item's location.
"ITEM:" + ItemTag to changed 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.
Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> 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.)
@snow lily