#(bmobonk) Projectile Launch Player

34 messages · Page 1 of 1 (latest)

ancient anchor
#

Is there a way to get the player that launches a projectile with the projectile launch event?

tardy agateBOT
#

(bmobonk) Projectile Launch Player

tardy agateBOT
#

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>

crimson moat
#

!e projectile launch

subtle valleyBOT
# crimson moat !e projectile launch
Group

Entity

Event Lines

projectile launched <entity> launched

Triggers

when a projectile is launched.

Context

<context.entity> returns the projectile.

Has Known Location

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

Cancellable

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

crimson moat
#

yeah this event doesnt have shooter info, but i'm 200% sure this isnt what you're looking for

#

you want the event for when a player shoots a projectile, right?

#

!e entity shoots bow

subtle valleyBOT
# crimson moat !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.

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.

crimson moat
#

this one should do for both bow and crossbow, and is quite probably what you want. if it isnt, please tell us exactly what you want to do so we can help you better

ancient anchor
#

@crimson moat no i'm looking for ender pearl

#

apologies for not clarifying

crimson moat
#

alright, then you'd use this one right here

#

!e player clicks block

subtle valleyBOT
# crimson moat !e player clicks block
Group

Player

**WARNING**

this event may in some cases double-fire, requiring usage of the 'ratelimit' command (like 'ratelimit <player> 1t') to prevent doubling actions.

Event Lines

player (right|left) clicks <block>

Switches

with:<item> to only process the event if a specified item was held.
using:hand/off_hand/either_hand to only process the event if the specified hand was used to click.
type:<material> to only run if the block clicked matches the material input.

Triggers

when a player clicks on a block or in the air.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.item> returns the ItemTag the player is clicking with.
<context.location> returns the LocationTag the player is clicking on.
<context.relative> returns a LocationTag of the air block in front of the clicked block.
<context.click_type> returns an ElementTag of the Spigot API click type <@link url https://hub.spi...
<context.hand> returns an ElementTag of the used hand.

Has Known Location

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

Cancellable

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

crimson moat
#

use the with: switch to specify an ender pearl, and specify right click

ancient anchor
crimson moat
#

so use using: switch too

#

can make it so it triggers on both hands

ancient anchor
#

ohh ok didn't know that thanks

crimson moat
#

np!

manic fiber
#

er

subtle valleyBOT
manic fiber
#

you can just read it with a tag

haughty duneBOT
#
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.)

#

@ancient anchor