Advertisement
Guest User

SkyHigh skript (100% tested) v1.0 (ChipzzyUHC)

a guest
Nov 10th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 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. broadcast "&a[&bSky&3High&a]: &bSkyHigh Items Given!"
  19. if arg-1 is "clean":
  20. {skyclean} is false:
  21. set {skyclean} to true
  22. broadcast "&a[&bSky&3High&a]: &bSkyClean Enabled!"
  23. else if {skyclean} is true:
  24. set {skyclean} to false
  25. broadcast "&a[&bSky&3High&a]: &bSkyClean Disabled!"
  26.  
  27. every 30 seconds:
  28. loop all players:
  29. if {skyhigh} is true:
  30. loop-player's y-coordinate is between 0 and 100
  31. damage the loop-player by 0.5 hearts
  32. send "&a[&bSky&3High&a]: &bYou must be above Y - 101. &3You have 30 seconds, start building." to loop-player
  33.  
  34.  
  35. on mine of sand:
  36. {skyclean} is true
  37. cancel event
  38. set the event-block to air
  39. drop 1 glass at the event-block
  40.  
  41. on mine of snow block:
  42. {skyclean} is true
  43. cancel event
  44. set the event-block to air
  45. drop 1 snow block at the event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement