#(fizz0_0) Event `VehicleCollidesEntity` deprecated

11 messages · Page 1 of 1 (latest)

jaunty geyser
#

Hi there, today when I try to use the event on vehicle collides with entity, the console displays a warning:

[Denizen] "Denizen v1.3.1-SNAPSHOT (build 7144-DEV)" has registered a listener for com.destroystokyo.paper.event.entity.ProjectileCollideEvent on method "public void com.denizenscript.denizen.paper.events.ProjectileCollideScriptEvent.projectileCollideEvent(com.destroystokyo.paper.event.entity.Pro
jectileCollideEvent)", but the event is Deprecated. "Server performance will be affected"; please notify the authors [The DenizenScript Team].

I'm on Paper 1.21.4 so I tested it wieh Denizen-DEV-b7144 since Paper 1.21.5 hasn't come out.

cinder onyxBOT
#

(fizz0_0) Event VehicleCollidesEntity deprecated

cinder onyxBOT
#

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.

jaunty geyser
#

Is this event safe to use? 👀

heavy cedar
#

It's been deprecated in favor of

#

!e projectile hits

fringe cipherBOT
# heavy cedar !e projectile hits
Group

Entity

Event Lines

<projectile> hits

Switches

entity:<entity> to only process the event if an entity got hit, and it matches the specified EntityTag matcher.
block:<block> to only process the event if a block got hit, and it matches the specified LocationTag matcher.
shooter:<entity> to only process the event if the projectile was shot by an entity, and it matches the specified EntityTag matcher.

Triggers

When a projectile hits a block or an entity.

Has Player

when the entity that was hit is a player, or when the shooter is a player if no entity was hit. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

when the entity that was hit is a npc, or when the shooter is a npc if no entity was hit.

Context

<context.projectile> returns an EntityTag of the projectile.
<context.hit_entity> returns an EntityTag of the entity that was hit, if any.
<context.hit_block> returns a LocationTag of the block that was hit, if any.
<context.hit_face> returns a LocationTag vector of the hit normal (like '0,1,0' if the projectile hit the top of a block).
<context.shooter> returns an EntityTag of the entity that shot the projectile, if any.

Has Known Location

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

Cancellable

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

heavy cedar
#

Just make sure to use the "entity" switch if you want to get the same effect as the original event

vapid quarryBOT
#
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.)

#

@jaunty geyser