Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffPush.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class EffPush extends Effect {

static {
Skript.registerEffect(EffPush.class,
"(push|thrust) %entities% [along] %direction% [(at|with) [a] (speed|velocity|force) [of] %-number%]",
"(push|thrust|pull) %entities% [along] %direction% [(at|with) [a] (speed|velocity|force) [of] %-number%]",
"(push|thrust|pull) %entities% (towards|away:away from) %location% [(at|with) [a] (speed|velocity|force) [of] %-number%]");
}

Expand Down
4 changes: 4 additions & 0 deletions src/test/skript/tests/syntaxes/effects/EffPush.sk
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ test "pushing and pulling":
push {_e} along vector(-2,-1,-1)
assert {_e}'s velocity is vector(0,0,0) with "pig's velocity after push was wrong"

set the velocity of {_e} to vector(0,0,0)
pull {_e} along vector(1,2,3)
assert {_e}'s velocity is vector(1,2,3) with "pig's velocity after pull was wrong"

delete entity within {_e}