Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&aElectrified&8]&e
- command /electrified [<text>]:
- permission: skript.op
- trigger:
- if arg 1 is "on", "enable", or "give":
- loop all players:
- set {elec} to true
- apply speed 1 to the loop-player for 999 days
- apply haste 1 to the loop-player for 999 days
- give loop-player 1 redstone named "Battery"
- set {HasBattery::%loop-player%} to true
- set {CanUseBattery::%loop-player%} to true
- wait 4 seconds
- broadcast "{@P} Batteries given out and effects applied!"
- stop
- if arg 1 is "off", "disable", or "stop":
- set {elec} to false
- broadcast "{@P} Electrified ended!"
- if arg 1 is "reset":
- delete {HasBattery::*}
- delete {CanUseBattery::*}
- delete {elec}
- broadcast "{@P} All variables &breset!"
- stop
- on login:
- if {elec} is true:
- if {HasBattery::%player%} is false:
- give player 1 redstone named "Battery"
- set {HasBattery::%player%} to true
- message "{@P} Battery given!" to the player
- on right click:
- player's tool is redstone named "Battery":
- if {CanUseBattery::%player%} is false:
- message "{@P} You cannot use your battery, your 3 minutes hasn't gone up!"
- else:
- remove speed from the player
- remove haste from the player
- apply haste 3 to the player for 17 seconds
- apply speed 2 to the player for 17 seconds
- broadcast "{@P} %player% is &bELECTRIFIED!"
- set {CanUseBattery::%player%} to false
- wait 18 seconds
- remove haste from the player
- remove speed from the player
- apply haste 1 to the player for 999 days
- apply speed 1 to the player for 999 days
- wait 3 minutes
- set {CanUseBattery::%player%} to true
- give loop-player 1 redstone named "Battery"
- message "{@P} You can use your battery again!"
- on walk on water:
- block below the player is water
- block at the player is water
- if {elec} is true:
- set {_h} to health of player
- set {_d} to .20
- set player's health to ({_h} - {_d})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement