Advertisement
Winter__

Untitled

Aug 18th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. options:
  2. P: &8[&aElectrified&8]&e
  3.  
  4. command /electrified [<text>]:
  5. permission: skript.op
  6. trigger:
  7. if arg 1 is "on", "enable", or "give":
  8. loop all players:
  9. set {elec} to true
  10. apply speed 1 to the loop-player for 999 days
  11. apply haste 1 to the loop-player for 999 days
  12. give loop-player 1 redstone named "Battery"
  13. set {HasBattery::%loop-player%} to true
  14. set {CanUseBattery::%loop-player%} to true
  15. broadcast "{@P} Batteries given out and effects applied!"
  16. stop
  17. if arg 1 is "off", "disable", or "stop":
  18. set {elec} to false
  19. broadcast "{@P} Electrified ended!"
  20.  
  21. on login:
  22. if {elec} is true:
  23. if {HasBattery::%player%} is false:
  24. give player 1 redstone named "Battery"
  25. set {HasBattery.%player%} to true
  26. message "{@P} Battery given!" to the player
  27.  
  28. on right click:
  29. player's tool is redstone named "Battery":
  30. if {CanUseBattery::%player%} is false:
  31. message "{@P} You cannot use your battery, your 3 minutes hasn't gone up!"
  32. else:
  33. remove all effects from player
  34. apply haste 3 to the player for 15 seconds
  35. apply speed 2 to the player for 15 seconds
  36. broadcast "{@P} %player% is &bELECTRIFIED!"
  37. wait 15 seconds
  38. apply haste 1 to the player for 999 days
  39. apple speed 1 to the player for 999 days
  40. set {CanUseBattery::%player%} to false
  41. wait 3 minutes
  42. give player 1 redstone named "Battery"
  43. message "{@P} You can use your battery again!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement