Skip to content

Commit

Permalink
Merge branch 'dev/patch' into fix/evtgrow
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus authored Dec 1, 2024
2 parents 3e5db6f + 876aee2 commit fea2a2f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/ch/njol/skript/events/SimpleEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,10 @@ public class SimpleEvents {
.requiredPlugins("Minecraft 1.14+ (event-entity support)")
.since("1.0, 2.5.3 (event-entity support)");
Skript.registerEvent("Projectile Hit", SimpleEvent.class, ProjectileHitEvent.class, "projectile hit")
.description("Called when a projectile hits an entity or a block.",
"Use the <a href='#damage'>damage event</a> with a <a href='conditions.html#CondIsSet'>check</a> for a <a href='expressions.html#ExprEntity'>projectile</a> " +
"to be able to use the <a href='expressions.html#ExprAttacked'>entity that got hit</a> in the case when the projectile hit a living entity.",
"A damage event will even be fired if the damage is 0, e.g. when throwing snowballs at non-nether mobs.")
.description("Called when a projectile hits an entity or a block.")
.examples("on projectile hit:",
"\tevent-projectile is arrow",
"\tdelete event-projectile")
"\tif victim's health <= 3:",
"\t\tdelete event-projectile")
.since("1.0");

if(Skript.classExists("com.destroystokyo.paper.event.entity.ProjectileCollideEvent"))
Expand Down

0 comments on commit fea2a2f

Please sign in to comment.