Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Custom SkyHigh with toggle-able skyclean! (written by chipzzy)
- command /skyhigh <text>:
- usage: /skyhigh <enable:disable:items:clean>
- permission: skript.op
- trigger:
- if arg-1 is "enable" or "on":
- set {skyhigh} to true
- broadcast "&a[&bSky&3High&a]: &bSkyHigh Enabled! &3You must me above Y:105 or you will take 1/2 a heart every 30 seconds!"
- if arg-1 is "disable" or "off":
- set {skyhigh} to false
- broadcast "&a[&bSky&3High&a]: &bSkyHigh Disabled! &3The Ground is now safe!"
- if arg-1 is "items" or "give":
- give 4 snow block to all players
- give 2 pumpkin to all players
- give 2 string to all players
- give 16 feather to all players
- broadcast "&a[&bSky&3High&a]: &bSkyHigh Items Given!"
- if arg-1 is "clean":
- {skyclean} is false:
- set {skyclean} to true
- broadcast "&a[&bSky&3High&a]: &bSkyClean Enabled!"
- else if {skyclean} is true:
- set {skyclean} to false
- broadcast "&a[&bSky&3High&a]: &bSkyClean Disabled!"
- every 30 seconds:
- loop all players:
- if {skyhigh} is true:
- loop-player's y-coordinate is between 0 and 100
- damage the loop-player by 0.5 hearts
- send "&a[&bSky&3High&a]: &bYou must be above Y - 101. &3You have 30 seconds, start building." to loop-player
- on mine of sand:
- {skyclean} is true
- cancel event
- set the event-block to air
- drop 1 glass at the event-block
- on mine of snow block:
- {skyclean} is true
- cancel event
- set the event-block to air
- drop 1 snow block at the event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement