Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Projectile Hit event description #7232

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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