Advertisement
Guest User

Untitled

a guest
Aug 14th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. # Anyone know what I'm doing wrong and if you can help me fix it? highlighted in green is what i'm trying to achieve in the script below
  2.  
  3. # AstralDrop - applies regeneration 1 and health boost 2 to the player for a short period of time. player must have ghast tear for Astral effects to be applied, (cooldown = 5 minutes). So on right click -> if player is holding ghast tear -> apply effects. if player doesn't have stick -> cancel
  4.  
  5. on right click holding ghast tear:
  6. make player execute /astraldrop
  7.  
  8. command /astraldrop:
  9. trigger:
  10. set {_waited} to difference between {astraldrop.%player%.lastused} and now
  11. if {_waited} is less than 5 minutes:
  12. message: &7[&e&lHumble&7] &cYou're on cooldown! Wait 5 minutes before using this again!
  13.  
  14. player doesn't have ghast tear
  15. cancel trigger
  16.  
  17. if {_waited} is greater than 301 seconds
  18. apply potion of regeneration 2 to player for 6 seconds
  19. apply potion of health boost to player for 14 seconds
  20. message: &7You have used the power of the &f&lAstral Drop &7use this short burst of power wisely.
  21.  
  22. # Pogo Stick - launcher player into the air (push player upwards). Players must have stick for it to work, (cooldown of 15 seconds)
  23.  
  24. on right click holding stick:
  25. make player execute /pogo
  26.  
  27. command /pogo
  28. trigger:
  29. set {_waited} to difference between {pogo.%player%.lastused} and now
  30. if {_waited} is less than 15 seconds:
  31. message: &7[&e&lHumble&7] &cYou're on cooldown! Wait 15 seconds before using this again!
  32.  
  33. player doesn't have stick
  34. cancel trigger
  35.  
  36. if {_waited} is greater than 16 seconds
  37. push player upwards
  38. message: &7&oWhooosh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement