Funnygatt

Untitled

Dec 8th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on flight toggle:
  2. if {codaw.jump.%player%.lastused} is set:
  3. if difference between {codaw.jump.%player%.lastused} and now is less than 15 seconds:
  4. stop
  5. else:
  6. broadcast "testing 123"
  7. set {codaw.jump.%player%.lastused} to now
  8. if player's gamemode is not creative:
  9. cancel event
  10. set fly state of player to false
  11. play raw sound "mob.irongolem.throw" at player with pitch 1 volume 20
  12. push player upwards at speed {@upwards}
  13. push player in direction of player at speed {@directional}
  14. stop
  15. else:
  16. broadcast "testing 123"
  17. set {codaw.jump.%player%.lastused} to now
  18. if player's gamemode is not creative:
  19. cancel event
  20. set fly state of player to false
  21. play raw sound "mob.irongolem.throw" at player with pitch 1 volume 20
  22. push player upwards at speed {@upwards}
  23. push player in direction of player at speed {@directional}
  24.  
  25. on join:
  26. while player is online:
  27. if block below player is not air:
  28. set {_codaw.jump.cooldown.%player%} to difference between {codaw.jump.%player%.lastused} and now
  29. if {_codaw.jump.cooldown.%player%} is more than 15 seconds:
  30. set fly state of player to true
  31. wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment