Upload main file v1.0
authorJan Hasebos <davywebshowjan@gmail.com>
Sat, 26 Mar 2016 16:53:25 +0000 (17:53 +0100)
committerJan Hasebos <davywebshowjan@gmail.com>
Sat, 26 Mar 2016 16:53:25 +0000 (17:53 +0100)
levitate.sk [new file with mode: 0644]

diff --git a/levitate.sk b/levitate.sk
new file mode 100644 (file)
index 0000000..64237ac
--- /dev/null
@@ -0,0 +1,23 @@
+on join:
+       execute console command "/speed fly 0.7 %player%"
+on sneak toggle:
+       set {levitate.%player%.waited} to difference between now and {levitate.%player%.lastused}
+       if player's gamemode is creative:
+               execute console command "/tm amsg %player% &cYou cant levitate in creative!"
+               stop
+               
+       if {levitate.%player%.waited} is less than 1 seconds:
+               stop
+               
+       if {levitate.%player%.waited} is less than 30 seconds:
+               set {levitate.%player%.waited.inverted} to difference between 30 seconds and {levitate.%player%.waited}
+               execute console command "/tm amsg %player% &cLevitate is on cooldown | %{levitate.%player%.waited.inverted}%"
+               stop
+               
+       execute console command "/fly %player%"
+       execute console command "/tm amsg %player% &bLevitate Activated!"
+       set {levitate.%player%.lastused} to now 
+       wait 1.5 seconds
+       execute console command "/fly %player%"
+       execute console command "/tm amsg %player% &3Levitate Deactivated!"
+       set {levitate.%player%.lastused} to now
This page took 0.128479 seconds and 4 git commands to generate.