1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Minecraft Skript I Pushing players

Discussion in 'Skript' started by ItsGamerLP, Feb 13, 2019.

Thread Status:
Not open for further replies.
  1. I

    ItsGamerLP Member

    Joined:
    Oct 20, 2017
    Messages:
    3
    Likes Received:
    0
    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: )
     
    #1 ItsGamerLP, Feb 13, 2019
    Last edited: Feb 13, 2019
  2. Vrganj

    Vrganj Well-Known Member

    Joined:
    Dec 1, 2018
    Messages:
    66
    Likes Received:
    2
    Code (Skript):
    1.  
    2. right click with blaze rod:
    3.     {empirewand.effect.%player%} = 1
    4.     loop players where [distance between input and player <= 6]:
    5.         push loop-player (direction from loop-player to player) at speed -1
     
  3. I

    ItsGamerLP Member

    Joined:
    Oct 20, 2017
    Messages:
    3
    Likes Received:
    0
    So i just News to put this in? Thank you very much!
     
  4. matvapes

    matvapes Member

    Joined:
    May 15, 2018
    Messages:
    11
    Likes Received:
    0
    Next time don't spoon feed people. They don't learn anything from it. :emoji_slight_smile:
     
  5. I

    ItsGamerLP Member

    Joined:
    Oct 20, 2017
    Messages:
    3
    Likes Received:
    0
    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...
    --- Double Post Merged, Feb 14, 2019, Original Post Date: Feb 14, 2019 ---
    Sorry for being annoying
     
  6. Vrganj

    Vrganj Well-Known Member

    Joined:
    Dec 1, 2018
    Messages:
    66
    Likes Received:
    2
    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
     
Thread Status:
Not open for further replies.
Loading...