Paste #34840: Edit of P#34835 Flide

Date: 2016/07/15 11:28:39 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


flide_cmd:
    type: command
    debug: false
    name: flide
    description: Flide into the skyde!
    usage: /flide
    permission: denizen.flide
    script:
    - if !<player.has_permission[denizen.flide]||false> {
      - narrate "<&c>Nope!"
      - queue clear
      }
    - actionbar "<gold>Launching! Hold sneak to land!"
    - adjust <player> velocity:0,2,0
    - wait 14t
    - adjust <player> gliding:true
    - while <player.is_online.and[<player.is_on_ground.not>].and[<player.gliding>].and[<player.is_sneaking.not>]> {
      - wait 1t
      - adjust <player> velocity:<player.location.direction.vector.mul[2]>
      }

flide_version:
  type: version
  name: Flide
  id: 101
  description: Flide into the skyde!
  version: 1.02