options: P: &8[&aElectrified&8]&e command /electrified []: 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 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!" 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 set {CanUseBattery::%player%} to false wait 3 minutes set {CanUseBattery::%player%} to true 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})