Paste #8662: looptask 2

Date: 2014/08/21 13:20:55 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


looptask: 
    type: task 
    script:
    - announce Hello
    - if <player.equipment.boots.scriptname||null> == schuhe { 
      - narrate 'If schuhe erkannt' 
    - potion jump <player> d:10 p:3
    - announce ' loop return '
    - run looptask delay:7s


    } else {   
    - potion jump remove <player>
    - announce ' Script ended '
      }

'loopcommand': 
  type: world 

  events: 

    on player equips armor:
    - run looptask