Black Hole effects

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

Idiosyncratic

Member
Feb 21, 2017
62
0
0
20
USA
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?
 
code_language.skript:
every second:
    loop living entities in radius 8 around {loc}:
        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
 
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.
 
Status
Not open for further replies.