Description
Your Elytra automatically Equip/Unequip when you want!
[Features]
Simply keep elytra in your inventory and fly like normal. Your chestplate (and fireworks) will be automatically swapped to elytra, and re-swapped when you stop flying.
And this mod works completely-independent, no extra libraries requested!

[Warnings]
If you swap a previously swapped item, the re-swap may not work like you expected.
Even in this case, this mod will try to make effective swap as effective as possible, but I cannot guarantee that the results will be as expected.
Changing your hotbar selection causes no problems.
[Configs]
・armorSwapMode ・・・・ Select how to choose swap target chestplate / elytra. these values is valid:
・VALUE(default) ・・・・ Always select Most Valueable Item. See [algorithm] section for details.
・PREUSED ・・・・ Try to use previously swapped chestplate / elytra.
・OFFHAND ・・・・ Try to use offhand chestplate / elytra.
・SLOT ・・・・ Try to use chestplate / elytra in Inventory Slot at [swapSlot].
・swapSlot ・・・・ when armorSwapMode is "SLOT", Uses an chestplate / elytra in the specified slot. Otherwise this value is ignored.
Top Left Slot is 0, Top Right Slot is 8, Hotbar Right Slot is 35.
・ignoreArmorTier ・・・・ If true, while calculating chestplate value, Ignores Armor Tiers. See [algorithm] section for details. false is default.
・isSwapFireworks ・・・・ IF true, swap mainhand items to fireworks when swapped to elytra. true is default.
・isFireworksOffhand ・・・・ IF true, swap offhand items instead of mainhand items when swaped to elytra. If isSwapFireworks is false, this value ignored.
・isUseSmallFireworksStack ・・・・ IF true, prioritize using small stacks of fireworks. If isSwapFireworks is false, this value ignored.
[Algorithms]
This mod calculate chestplate / elytra / fireworks value below algorithms:
if the value result is minus, the item never selected as swap target.
・Armor tier scores (if ignoreArmorTier is true)
・NETHERITE ・・・・ 3000
・DIAMOND ・・・・ 2000
・GOLD ・・・・ 0 , but if you are in Nether and wears no gold items, 3000
・IRON ・・・・ 1000
・CHAIN ・・・・ 1000
・LETHER ・・・・ 0
・Othes(mod materials expected) ・・・・ 2500
・Enchantment scores
・MENDING ・・・・ 500
・UNBREAKING ・・・・ 50 per level.
・PROTECTION ・・・・ 100 per level.
・BLAST PROTECTION ・・・・ 100 per level.
・FIRE PROTECTION ・・・・ 100 per level.
・PROJECTILE PROTECTION ・・・・ 100 per level.
・BINDING CURSE ・・・・ -999999 (so this cursed item may not selected as swap target.
・VANISHING CURSE ・・・・ -1000
・Duratbility scores
・current Durability ・・・・ 1 per 1 durability.
・Max Durability ・・・・ 1 per 100 durability.
・If current Durability is less than 10, all score is overwrited to current Durability.
・StackSize and other fireworks scores
・If isUseSmallFireworksStack is true,
・Max Stack Size - current Stack Size ・・・・ 100 per 1
If isUseSmallFireworksStack is false,
・current Stack Size ・・・・ 100 per 1
・Flight Duration ・・・・ 10 per 1.
・has Fireworks stars ・・・・ -30 per 1.


