#(Dangles) Adjust the speed of an arrow when fired.

16 messages · Page 1 of 1 (latest)

solid dirge
#

Just looking to see if I can modify the speed of an arrow fired from a bow. I know that the entity shoots item has <context.force> but looking into tags I wasn't able to find anything

ruby elbowBOT
#

(Dangles) Adjust the speed of an arrow when fired.

ruby elbowBOT
#

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.

solid dirge
#

!e entity shoots bow

flat turtleBOT
# solid dirge !e entity shoots bow
Group

Entity

Event Lines

entity shoots bow <entity> shoots <item>

Triggers

when an entity shoots something out of a bow.

Has Player

when the entity that shot the bow is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

when the entity that shot the bow is an NPC.

Context

<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.
<context.hand> returns "HAND" or "OFF_HAND" for which hand the bow was in.

Determine

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.

Has Known Location

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

Cancellable

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

unique summit
#

might have to just adjust the velocity of the arrow

solid dirge
#

I am little confused on the veolcity component. So <context.projectile.velocity> returns a location tag, but I am not sure where I would go from there

unique summit
#

What does that tag return for you, and what effect are you trying to implement?

solid dirge
#

it returns a location tag, and its not consistent

#

I just want to speed up or slow down an item

unique summit
#

can you paste the location?

solid dirge
#

'l@0.9144607982424957,2.062010384053771,2.0117437510194573,world3

solid dirge
#

It seems to be just the location. I'm not sure how I'd work with this to make it go faster lol

analog socket
#

adjust <arrow> velocity:<entity.velocity.mul[2]>