Solved Walk on water?

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

FishRekt

Active Member
Jan 26, 2017
87
0
0
25
I need to do a skript when you walk on water, it sets a block under you for 2 seconds to make you walk on it.
This is the code:

code_language.skript:
on any move:
    if block 1 blocks forwards player is water:
        set {_block1} to block 1 forwards player
        set block at {_block1} to glass
        set {_block1} to block 1 forwards player
        wait 1 second
        if block at {_block1} is {_block1}:
            stop
        else:
            set block at {_block1} to water
    if block 1 blocks backwards player is water:
        set {_block2} to block 1 backwards player
        set block at {_block2} to glass
        set {_block2} to block 1 backwards player
        wait 1 second
        if block at {_block2} is {_block2}:
            stop
        else:
            set block at {_block2} to water
    if block 1 blocks right player is water:
        set {_block3} to block 1 right player
        set block at {_block3} to glass
        set {_block3} to block 1 right player
        wait 1 second
        if block at {_block3} is {_block3}:
            stop
        else:
            set block at {_block3} to water
    if block 1 blocks left player is water:
        set {_block4} to block 1 left player
        set block at {_block4} to glass
        set {_block4} to block 1 left player
        wait 1 second
        if block at {_block4} is {_block4}:
            stop
        else:
            set block at {_block4} to water
 
Status
Not open for further replies.