I need the enderman skill

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

SpiderDev

New Member
Jan 27, 2017
7
0
0
32
i need a code when im rightclicking with an iron sword, it will teleport me to the nearest player in 5 blocks, i need it asap
 
code_language.skript:
on rightclick:
    if player's tool is iron sword:
        if between {Cooldown.%player%} and now is less than 10 seconds:
            loop all players in radius 5 around player:
                teleport player to loop-player
                set {Cooldown.%player%} to now
                stop loop
                stop
            send "Sorry, No player nearst Found"
        else:
            send "Nop, not right now!"
 
Last edited by a moderator:
code_language.skript:
on rightclick:
    if player's tool is iron sword:
        loop all players in radius 5 around player:
            teleport player to loop-player
            stop loop
            stop
        send "Sorry, No player nearst Found"
Sorry dude, I forgot to type that I need it with cooldown if you can