Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on flight toggle:
- if {codaw.jump.%player%.lastused} is set:
- if difference between {codaw.jump.%player%.lastused} and now is less than 15 seconds:
- stop
- else:
- broadcast "testing 123"
- set {codaw.jump.%player%.lastused} to now
- if player's gamemode is not creative:
- cancel event
- set fly state of player to false
- play raw sound "mob.irongolem.throw" at player with pitch 1 volume 20
- push player upwards at speed {@upwards}
- push player in direction of player at speed {@directional}
- on join:
- while player is online:
- if block below player is not air:
- set {_codaw.jump.cooldown.%player%} to difference between {codaw.jump.%player%.lastused} and now
- if {_codaw.jump.cooldown.%player%} is more than 15 seconds:
- set fly state of player to true
- wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment