Skip to content

Commit

Permalink
Updated Projectile Hit event description (SkriptLang#7232)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asleeepp authored and Burbulinis committed Dec 3, 2024
1 parent 5d20330 commit 67bb8e8
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 @@ -343,13 +343,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 67bb8e8

Please sign in to comment.