Guest User

SkyHigh v.1.1 (Chipzzy)

a guest
Nov 11th, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. # Custom SkyHigh with toggle-able skyclean! (written by chipzzy)
  2.  
  3. command /skyhigh <text>:
  4. usage: /skyhigh <enable:disable:items:clean>
  5. permission: skript.op
  6. trigger:
  7. if arg-1 is "enable" or "on":
  8. set {skyhigh} to true
  9. broadcast "&a[&bSky&3High&a]: &bSkyHigh Enabled! &3You must me above Y:105 or you will take 1/2 a heart every 30 seconds!"
  10. if arg-1 is "disable" or "off":
  11. set {skyhigh} to false
  12. broadcast "&a[&bSky&3High&a]: &bSkyHigh Disabled! &3The Ground is now safe!"
  13. if arg-1 is "items" or "give":
  14. give 4 snow block to all players
  15. give 2 pumpkin to all players
  16. give 2 string to all players
  17. give 16 feather to all players
  18. give 64 clay block to all players
  19. give 64 clay block to all players
  20. broadcast "&a[&bSky&3High&a]: &bSkyHigh Items Given!"
  21. if arg-1 is "clean":
  22. {skyclean} is false:
  23. set {skyclean} to true
  24. broadcast "&a[&bSky&3High&a]: &bSkyClean Enabled!"
  25. else if {skyclean} is true:
  26. set {skyclean} to false
  27. broadcast "&a[&bSky&3High&a]: &bSkyClean Disabled!"
  28.  
  29. every 30 seconds:
  30. loop all players:
  31. if {skyhigh} is true:
  32. loop-player's y-coordinate is between 0 and 101
  33. damage the loop-player by 0.5 hearts
  34. send "&a[&bSky&3High&a]: &bYou must be above Y - 101. &3You have 30 seconds, start building." to loop-player
  35.  
  36. on skript enable:
  37. set {skyclean} to false
  38.  
  39.  
  40.  
  41. on mine of sand:
  42. {skyclean} is true
  43. cancel event
  44. set the event-block to air
  45. drop 1 glass at the event-block
  46.  
  47. on mine of snow block:
  48. {skyclean} is true
  49. cancel event
  50. set the event-block to air
  51. drop 1 snow block at the event-block
Advertisement
Add Comment
Please, Sign In to add comment