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 out 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.

Black Hole effects

Discussion in 'Skript' started by Idiosyncratic, Jun 16, 2017.

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

    Idiosyncratic Member

    Joined:
    Feb 21, 2017
    Messages:
    62
    Likes Received:
    0
    So what I want to do is slowly pull players to a position I set, as long as they are within 8 blocks of it. I had the idea to use teleporting but as I started coding that I realized it would be buggy and not very fun to play with, considering this is being used for a boss fight arena. So, could anyone push me in the right direction for the pull effect?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Code (Skript):
    1. every second:
    2.     loop living entities in radius 8 around {loc}:
    3.         push the loop-value in the direction of {loc} at speed -0.5
    You might need to make it every tick or every few ticks to make it smooth and play around with the speed to get what you want
     
    • Funny Funny x 1
    • Useful Useful x 1
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    blackhole.PNG

    I forgot to mention I'm using Skript 2.1.2 with MC 1.8.8, if that's why this won't work.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Try loop-living entity or loop-entity. Remove "the" if they don't work.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Loads without error but when I set the location of the blackhole it does nothing.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...