#(Aviside) Cant put "with:myItem" at the end of the event lines "after arrow hits entity" so how?
45 messages · Page 1 of 1 (latest)
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>
An item where?
you have two entities here: the arrow and the hit target
What item are you asking about
A denizen item
I'm trying to cast after an entity is hit with an arrow by a denizen item
The extension says using "with:myItem" is disabled for this event line
So is there another way to accomplish this? I can only figure out how to apply it to all arrows
(Aviside) Cant include "with:myItem" at the end of the event lines "after arrow hits entity"
(Aviside) Cant put "with:myItem" at the end of the event lines "after arrow hits entity" so how?
I edited the post
an arrow isnt an item, its an entity that essentially embodies an item
!t entity.item
If the entity is a dropped item, returns the item represented by the entity.
If the entity is a trident, returns the trident item represented by the entity.
If the entity is a throwable projectile, returns the display item for that projectile.
If the entity is an eye-of-ender, returns the item to be displayed and dropped by it.
If the entity is a fireball, returns the fireball's display item.
properties
ItemTag
EntityTag.item
does this work? im not sure if it will..
That should work iirc, have an if check in the event to check the arrow's item
!c if
queue
if [<value>] (!)(<operator> <value>) (&&/|| ...) [<commands>]
Compares values, and runs a subset of commands if they match.
Compares values, and runs a subset of commands if they match.
Works with the else command, which handles alternatives for when the comparison fails.
The if command is equivalent to the English phrasing "if something is true, then do the following".
Values are compared using the comparable system. See !language operator for information.
Comparisons may be chained together using the symbols '&&' and '||' or their text equivalents 'and' and 'or'.
'&&' means "and", '||' means "or".
So, for ...
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.)
@jolly oyster
I don't think it works
Did this line
- if <context.projectile.item> == morWingsGreatBow:
debug is saying item is an unfilled or unrecognized subtag
!t entity.item
If the entity is a dropped item, returns the item represented by the entity.
If the entity is a trident, returns the trident item represented by the entity.
If the entity is a throwable projectile, returns the display item for that projectile.
If the entity is an eye-of-ender, returns the item to be displayed and dropped by it.
If the entity is a fireball, returns the fireball's display item.
properties
ItemTag
EntityTag.item
!e entity shoots bow
Entity
entity shoots bow <entity> shoots <item>
when an entity shoots something out of a bow.
when the entity that shot the bow is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
when the entity that shot the bow is an NPC.
<context.entity> returns the EntityTag that shot the bow.
<context.projectile> returns a EntityTag of the projectile.
<context.bow> returns the ItemTag of the bow used to shoot.
<context.force> returns the force of the shot.
<context.item> returns an ItemTag of the shot projectile, if any.
ListTag(EntityTag) to change the projectile(s) being shot. (Note that in certain cases, determining an arrow may not be valid).
"KEEP_ITEM" to keep the projectile item on shooting it.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
In which you can flag the projectile
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.)
@jolly oyster
@jolly oyster
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.
@jolly oyster
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.