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!

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

tim740's Code Snippets [Sk 2.1, skQuery]

Discussion in 'Snippets' started by tim740, Jan 24, 2017.

  1. tim740

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    24
    Likes Received:
    28
    Found one of my old skript folders full of old skripts (over 300) and I thought I'd share a few.

    These will never be updated.

    Code (Text):
    1.  
    2. on right click:
    3.    tool is bow
    4.    loop 50 times:
    5.        shoot arrow from player
    6.        wait 2 ticks
    7.  

    Code (Text):
    1.  
    2. command /AutoGrow :
    3.    trigger:
    4.        if arg is less than 50:
    5.            loop blocks in radius arg around the player:
    6.                loop-block is grass
    7.                block above loop-block is air
    8.                set {_agrn} to a random integer between 1 and 12
    9.                {_agrn} is not 7
    10.                if {_agrn} is 1 or 2 or 3:
    11.                    set block above loop-block to poppy
    12.                    add 1 to {_agtd::1}
    13.                else if {_agrn} is 4 or 5:
    14.                    set block above loop-block to dandelion
    15.                    add 1 to {_agtd::2}
    16.                else if {_agrn} is 6:
    17.                    set loop-block to soul sand
    18.                    set block above loop-block to ripe nether wart
    19.                    add 1 to {_agtd::3}
    20.                else:
    21.                    set block above loop-block to long grass
    22.                    add 1 to {_agtd::0}
    23.           send json "&7[&eAutoGrow&7]: &eDone! &7(&eStats Hover&7)" tooltip "&7[&eAutoGrow&7]: &eTotal%nl%&7Grass: &e%{_agtd::0}%%nl%&7Poppy: &e%{_agtd::1}%%nl%&7Dandelion: &e%{_agtd::2}%%nl%&7NetherWart: &e%{_agtd::3}%" to player
    24.        else:
    25.            send "&7[&eAutoGrow&7]: &cNumber is too high!"
    26.  

    Code (Text):
    1.  
    2. on right click:
    3.    if tool is a emerald named "Biome Remover":
    4.        loop all blocks in radius 5:
    5.            set {_t} to type of loop-block
    6.            set loop-block to air
    7.            drop {_t} at event-block
    8.  

    Code (Text):
    1.  
    2. on right click:
    3.    set clicked block to 20
    4.    wait 10 ticks
    5.    set clicked block to 95
    6.    wait 10 ticks
    7.   loop 15 times:
    8.    set clicked block to "95:%loop-num%" parsed as item
    9.      wait 10 ticks
    10.  

    Code (Text):
    1.  
    2. command /walk:
    3.    trigger:
    4.        set player's walk speed to 0.1
    5.        while player is online:
    6.            player is sneaking:
    7.                reset player's walk speed
    8.                stop
    9.            wait 1 tick
    10.  

    Code (Text):
    1.  
    2. command /slap :
    3.    trigger:
    4.        push arg upwards with force 1
    5.        push arg backwards with force 1
    6.        message "&6You just been slapped!" to arg
    7.  
     
    • Like Like x 1
Loading...