Fly not Glide icon

Fly not Glide -----

Fly your elytra like a creative fly by using fuel and booster!




2021-08-06_22.04.23.png
Feature

  • Equip an elytra and shift right-click with fuel in hand to activate flying mode
  • Configurable both fuel item (default: ender pearl) and flying duration for 1 fuel
  • Right-click with boost item to boost flying speed
  • Configurable both boost item (default: firework rocket) and boost duration for 1 boost item
  • Enable/disable booster
  • Configurable default speed and boost speed
  • Configurable flying bar message
  • Configurable flying bar progress value (must between 0 and 1)
  • Support unbreakable elytra
  • Can ignore unbreaking enchant on elytra
  • Player will fall if elytra break or out of fuel
Todo
  • Add permission
  • Can manually add extra flying bar with more customizable (color, style, etc)
  • Add config which can increase or decrease the damage of an elytra (Now it's 1 damage per second if not enchant with unbreaking)
Demo
[​IMG]
[​IMG]

if you have any ideas or requests, please let me know. I'm here to help.

Default config

Code (YAML):
# fly not glide
# version 1.0

### enable/disable
enable-flying-mode
: true
enable-gliding-mode
: true

### flying
fuel
: ENDER_PEARL # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
default-speed
: 0.1
flying-duration-per-fuel
: 140 # in ticks
quite-elytra-mode
: false # (!!NOT DONE!!) this mode do severals things when player is flying
                          # 1. slowly reduce y-axis if player out of boost via slow falling effect
                          # 2. cannot go further on y-axis if player out of boost

### boosting
boost-enable
: true
boost-item
: FIREWORK_ROCKET
boost-speed
: 0.36
boost-duration-per-item
: 60 # in ticks
override-boost-duration-with-flight-duration
: true # if set to true this will override boost-duration-per-item with flight duration of firework rocket
                                                # work especially for boost-item set to FIREWORK_ROCKET

### elytra
ignore-elytra-unbreaking-enchant
: false

### flying bar
# you can apply the expression in form of "{expression:DecimalFormat}"
# DecimalFormat format: https://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html
# %remain-time-sec%
# %remain-time-min%
# %remain-time-by-total-fuel-sec%
# %remain-time-by-total-fuel-min%
# %fuel-total%
# %elytra-remain-durability%
# %elytra-max-durability%
# %fly-speed% (in blocks/tick (you can multiply by 20 to convert to blocks/sec])
# %max-fly-speed% (in blocks/tick (you can multiply by 20 to convert to blocks/sec))
# %altitude%
message
: "&lflying time {%remain-time-by-total-fuel-sec%:#} secs by total of %fuel-total% ender pearls | &b&lelytra {%elytra-remain-durability%/%elytra-max-durability%*100:#.##}%"
# progress-value must between 0 to 1
progress-bar-expression
: "{%remain-time-sec%/(140/20)}"
Resource Information
Author:
----------
Total Downloads: 63
First Release: Aug 6, 2021
Last Update: Aug 6, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings