Skript attraction/suction ability help needed

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

Mullac

Member
Sep 19, 2024
1
0
1
24
Im creating a skript that give the players powers each unique to each other one of them is Gojo's blue from jujutsu kaisen that im having quite a bit of trouble with everything works well until the pulling towards the designated area for pulling which is supposed to be 5 blocks infront of the player
it has many different toggles for abilities

The suspected area thats wrong:

Code:
pull loop-entity towards {_pull_loc} at speed 1.5

Full ability code :

Code:
on right click:
    if {skill::%player%} is set:
        if player is sneaking:
            if {org.%uuid of player%} is "Mullac":
                execute player command: "/blue"
              
command /blue:
    trigger:
        if {org.%uuid of player%} is "Mullac":
            if {Togglecolour::*} contains player's uuid:
                if {Togglemessages::*} contains player's uuid:
                    stop
                else:
                    send "&bYou disabled your abilities, use /toggle to enable them again." to player
                    stop
            send "&6Activated &e&lCursed Technique: Blue &r&6ability." to player
            play sound "entity.generic.extinguish_fire" at player
            # Calculate location 5 blocks in front of the player
            set {_pull_loc} to location of player offset by vector(0, 0, 5)
            loop 20 times:
                loop all players in radius 8 around {_pull_loc}:
                    {org.%uuid of loop-entity%} is not "Mullac":
                        pull loop-player towards {_pull_loc} at speed 2
                        apply slowness 1 to loop-player for 2 seconds

                draw 20 portal at {_pull_loc} with offset vector(1, 1, 1) with extra 0.4

                loop all entities in radius 10 around {_pull_loc} where [input is not player]:
                    pull loop-entity towards {_pull_loc} at speed 1.5
                    damage loop-entity by 3 hearts
                    send "&bYou are pulled by Gojo's Blue!" to loop-entity
 
Last edited:
Im creating a skript that give the players powers each unique to each other one of them is Gojo's blue from jujutsu kaisen that im having quite a bit of trouble with everything works well until the pulling towards the designated area for pulling which is supposed to be 5 blocks infront of the player
it has many different toggles for abilities

The suspected area thats wrong:

Code:
pull loop-entity towards {_pull_loc} at speed 1.5

Full ability code :

Code:
on right click:
    if {skill::%player%} is set:
        if player is sneaking:
            if {org.%uuid of player%} is "Mullac":
                execute player command: "/blue"
             
command /blue:
    trigger:
        if {org.%uuid of player%} is "Mullac":
            if {Togglecolour::*} contains player's uuid:
                if {Togglemessages::*} contains player's uuid:
                    stop
                else:
                    send "&bYou disabled your abilities, use /toggle to enable them again." to player
                    stop
            send "&6Activated &e&lCursed Technique: Blue &r&6ability." to player
            play sound "entity.generic.extinguish_fire" at player
            # Calculate location 5 blocks in front of the player
            set {_pull_loc} to location of player offset by vector(0, 0, 5)
            loop 20 times:
                loop all players in radius 8 around {_pull_loc}:
                    {org.%uuid of loop-entity%} is not "Mullac":
                        pull loop-player towards {_pull_loc} at speed 2
                        apply slowness 1 to loop-player for 2 seconds

                draw 20 portal at {_pull_loc} with offset vector(1, 1, 1) with extra 0.4

                loop all entities in radius 10 around {_pull_loc} where [input is not player]:
                    pull loop-entity towards {_pull_loc} at speed 1.5
                    damage loop-entity by 3 hearts
                    send "&bYou are pulled by Gojo's Blue!" to loop-entity
Replace 'pull' with 'push'.