Skip to content

Commit 83a15eb

Browse files
authored
Add pull alias in EffPush (#8230)
1 parent 0278847 commit 83a15eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/ch/njol/skript/effects/EffPush.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class EffPush extends Effect {
3030

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

src/test/skript/tests/syntaxes/effects/EffPush.sk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ test "pushing and pulling":
2121
push {_e} along vector(-2,-1,-1)
2222
assert {_e}'s velocity is vector(0,0,0) with "pig's velocity after push was wrong"
2323

24+
set the velocity of {_e} to vector(0,0,0)
25+
pull {_e} along vector(1,2,3)
26+
assert {_e}'s velocity is vector(1,2,3) with "pig's velocity after pull was wrong"
27+
2428
delete entity within {_e}

0 commit comments

Comments
 (0)