Solved Make skript do something after loop finishes

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

    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.

JustADev

Well-Known Member
Apr 8, 2017
379
9
18
How do I make it so that my skript Removes fire 3 seconds after it has been placed...

Current Code:
code_language.skript:
on rightclick with diamond sword:
    name of player's tool is "&eBlaziken Sword":
        set {_Waited} to difference between {FireTrail::%player%} and now
        if {_Waited} is less than 25 seconds:
            message "&cCooldown &8&l» &7You must wait &c%difference between {_Waited} and 25 seconds% &7to use your ability"
            stop
        else:
            set {FireTrail::%player%} to now
            send "&cAbility &8&l» &7You have activated your &cFire Dash &7ability" to player
            apply potion of swiftness 1 to player for 10 seconds
            loop 25 times:
                set {_block} to block 1 blocks backwards player
                set block at {_block} to fire
                wait 5 ticks
 
Add the location the fire is at to a list. After the loop ends, loop the list then set the location (if it is fire) to air.
 
Status
Not open for further replies.