Elytra Patch Slot and Keep Inventory
A Fabric patch for the Elytra Slot mod that prevents equipped elytras from disappearing on death when keepInventory is active.

Overview and Bug Fix
Created by Panda_Corp, this mod addresses a specific bug involving wings placed inside a dedicated equipment slot. It prevents an elytra stored in the special Elytra Slot from vanishing upon death while the keepInventory gamerule is turned on. Without this fix, players could lose their equipped flight gear despite having inventory preservation enabled.
How the Patch Functions in Game
The modification works automatically in the background whenever a fatal event occurs. It records the equipped elytra right before a player dies and places it back after they respawn. As a result, the custom slot follows the same item retention behavior as standard vanilla inventory slots when keepInventory is active.
Compatibility and Requirements
Players must use the correct game environment for this fix to work properly. This mod is built for Minecraft Java Edition 1.21.11 using the Fabric loader and requires the Elytra Slot mod to function. It acts purely as a compatibility patch for that specific equipment slot addition.
Questions
What issue does this mod resolve?
It stops the elytra in the dedicated Elytra Slot from disappearing after death when the keepInventory gamerule is enabled.
Does this mod require any other projects to work?
Yes, it requires the Elytra Slot mod.
Which Minecraft version and loader are supported?
It is made for Minecraft Java Edition 1.21.11 running on Fabric.
Related

Adds a dedicated Curios or Trinkets slot for the elytra so players can fly while wearing chest armor.

Adds craftable colorful wings worn in the Curios or Trinkets back slot that consume hunger while flying.

A Create addon that adds a craftable mechanical wing glider with a wing-flap boost mechanic.

Allows players to equip their elytra in the Baubles body slot and fixes several Baubles bugs.

A quality-of-life mod that lets players quickly swap between their chestplate and elytra with a keybind.

A bugfix mod that resolves constant elytra breaking sounds when using BetterEnd elytras with Accessories or Trinkets.

A lightweight Fabric mod that allows equipping the elytra in the Trinkets API cape slot.

Adds a dedicated equipment slot so players can wear an elytra alongside chest armor.