Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {heavymetal} = false
- {_heavymetal.%player%} = 0
- command /heavymetal <status> <time>
- description: enables or disables heavymetal skript
- usage: /heavymetal <enable:disable:toggle:help> <time>
- permission: host
- trigger:
- if arg 1 is enable:
- {heavymetal} is false:
- set {heavymetal} to true
- message %player% "Heavy Metal has been enabled."
- wait %arg 2% minutes
- broadcast "Heavy Metal is now active"
- else:
- message %player% "Heavy Metal has already been enabled."
- else if arg 1 is disable:
- {heavymetal} is true:
- set {heavymetal} to true
- message %player% "Heavy Metal has been disabled."
- else:
- message %player% "Heavy Metal has already been disabled."
- else if arg 1 is toggle:
- {heavymetal} is false:
- set {heavymetal} to true
- message %player% "Heavy Metal has been enabled."
- wait %arg 2% minutes
- broadcast "Heavy Metal is now active"
- else:
- set {heavymetal} to false
- message %player% "Heavy Metal has been disabled."
- else if arg1 is help:
- message %player% "/heavymetal <enable:disable:toggle:help> <minutes until PVP starts>
- else:
- execute command "/heavymetal <help>"
- every second:
- player's slot 100 isn't empty:
- add 1 to {_heavymetal.%player%}
- player's slot 101 isn't empty:
- add 1 to {_heavymetal.%player%}
- player's slot 102 isn't empty:
- add 1 to {_heavymetal.%player%}
- player's slot 103 isn't empty:
- add 1 to {_heavymetal.%player%}
- player is wearing leather helmet:
- add 1 to {_heavymetal.%player%}
- player is wearing leather chestplate:
- add 1 to {_heavymetal.%player%}
- player is wearing leather leggings:
- add 1 to {_heavymetal.%player%}
- player is wearing leather leggins:
- add 1 to {_heavymetal.%player%}
- player is wearing leather boots:
- add 1 to {_heavymetal.%player%}
- player is wearing diamond helmet:
- add 5 to {_heavymetal.%player%}
- player is wearing diamond chestplate:
- add 5 to {_heavymetal.%player%}
- player is wearing diamond leggings:
- add 5 to {_heavymetal.%player%}
- player is wearing diamond boots:
- add 5 to {_heavymetal.%player%}
- size of {_heavymetal.%player%} is 1:
- apply swiftness 1 to the player for 2 seconds
- size of {_heavymetal.%player%} is 2:
- apply swiftness 2 to the player for 2 seconds
- size of {_heavymetal.%player%} is 3:
- apply swiftness 3 to the player for 2 seconds
- size of {_heavymetal.%player%} is 4:
- apply swiftness 4 to the player for 2 seconds
- size of {_heavymetal.%player%} is 10:
- apply slowness 2 to the player for 2 seconds
- size of {_heavymetal.%player%} is 20:
- apply slowness 4 to the player or 2 seoncods
- reset {_heavymetal.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement