Minecraft Skript I Pushing players

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ItsGamerLP

Member
Oct 20, 2017
3
0
0
24
Hello! I just wanted to ask how to push all players in a radius of 6 blocks in the opposite direction of the player because I don't know how to do it. It just works with:

on right click:
player is holding a blaze rod
{empirewand.effect.%player%} is 1:
loop all entities in radius 6 around player:
push loop-entity in the direction of the player at speed 0.3

I want to push all Players in a radius of 6 blocks away from the player (Every direction) Means that if a player is behind him, next to him e.t.c gets pushed away (My english is bad D: )
 
Last edited:
code_language.skript:
right click with blaze rod:
    {empirewand.effect.%player%} = 1
    loop players where [distance between input and player <= 6]:
        push loop-player (direction from loop-player to player) at speed -1
 
code_language.skript:
right click with blaze rod:
    {empirewand.effect.%player%} = 1
    loop players where [distance between input and player <= 6]:
        push loop-player (direction from loop-player to player) at speed -1
So i just News to put this in? Thank you very much!
 
code_language.skript:
right click with blaze rod:
    {empirewand.effect.%player%} = 1
    loop players where [distance between input and player <= 6]:
        push loop-player (direction from loop-player to player) at speed -1
Next time don't spoon feed people. They don't learn anything from it. :emoji_slight_smile:
 
Could you please say what direction from loop-player to player and distance between input and player <= 6 means :/ My english isn't that good
btw im german...
[doublepost=1550158139,1550158053][/doublepost]Sorry for being annoying
 
Could you please say what direction from loop-player to player and distance between input and player <= 6 means :/ My english isn't that good
btw im german...
[doublepost=1550158139,1550158053][/doublepost]Sorry for being annoying
Well <= means less or equal, >= means more or equal, and the direction thing is plain english, so I don't know how to explain that
 
Status
Not open for further replies.