Advertisement
Winter__

Untitled

Aug 19th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. wait 4 seconds
  16. broadcast "{@P} Batteries given out and effects applied!"
  17. stop
  18. if arg 1 is "off", "disable", or "stop":
  19. set {elec} to false
  20. broadcast "{@P} Electrified ended!"
  21. if arg 1 is "reset":
  22. delete {HasBattery::*}
  23. delete {CanUseBattery::*}
  24. delete {elec}
  25. broadcast "{@P} All variables &breset!"
  26. stop
  27.  
  28. on login:
  29. if {elec} is true:
  30. if {HasBattery::%player%} is false:
  31. give player 1 redstone named "Battery"
  32. set {HasBattery::%player%} to true
  33. message "{@P} Battery given!" to the player
  34.  
  35. on right click:
  36. player's tool is redstone named "Battery":
  37. if {CanUseBattery::%player%} is false:
  38. message "{@P} You cannot use your battery, your 3 minutes hasn't gone up!"
  39. else:
  40. remove speed from the player
  41. remove haste from the player
  42. apply haste 3 to the player for 17 seconds
  43. apply speed 2 to the player for 17 seconds
  44. broadcast "{@P} %player% is &bELECTRIFIED!"
  45. set {CanUseBattery::%player%} to false
  46. wait 18 seconds
  47. remove haste from the player
  48. remove speed from the player
  49. apply haste 1 to the player for 999 days
  50. apply speed 1 to the player for 999 days
  51. wait 3 minutes
  52. set {CanUseBattery::%player%} to true
  53. give loop-player 1 redstone named "Battery"
  54. message "{@P} You can use your battery again!"
  55.  
  56. on walk on water:
  57. block below the player is water
  58. block at the player is water
  59. if {elec} is true:
  60. set {_h} to health of player
  61. set {_d} to .20
  62. set player's health to ({_h} - {_d})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement