while loop

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

  1. YW_Beta

    Solved Detect damage AGAIN in a while loop

    I'm trying to detect if a victim is damaged AGAIN in this while loop after damage, but the loop is exited instantly instead of waiting for a second attack to happen like I want it to. Code: On damage: if type of victim is a slime: while block below victim is not grass block or oak...
  2. M

    Solved Prevent duplicate "while player is online:" loops

    Some time ago, I learned that on join: while player is online: #do stuff wait 5 seconds is better than every 5 seconds: loop all players: #do stuff for that player in terms of performance, which I do see. However, I noticed that if you logged out and logged on...
  3. T

    Solved help with loop of players inventory

    So the code below is meant to check if the player is wearing the correct armor (which is does properly) then again check if the player is still wearing that armor every 5 seconds (just for testing purposes for now) the problem is that it does detect that the player has taken the armor of. The...