End Portal Recipe (Legacy Fabric)

About the Modification
This modification allows creating End portals through crafting, moving them, and using them in survival mode. Since the recipe requires a dragon egg, players will only gain access to creating new portals after defeating the Ender Dragon. However, it's possible to extract portal frame blocks from strongholds and place them elsewhere.
Main Features
The Ender Dragon now always drops a dragon egg. On the first kill, one egg appears on the pedestal while a second one automatically goes into the player's inventory.
Portal crafting follows this recipe:
- 5 Eyes of Ender
- 1 Dragon Egg
- 3 End Stone

Installation and Usage
Portals can be placed anywhere:

Fill the portal frames with Eyes of Ender:

The portal activates and becomes a functional End portal:

Important: place portals in the correct direction
Portal Destruction
In survival mode, portals can be broken with any pickaxe. This drops the frame blocks and any inserted Eyes of Ender: This also destroys the portal blocks themselves

Configuration
mustHaveSilkTouchToBreakPortal (default = true): if enabled, players can only break portal frames with a Silk Touch pickaxe
addBrokenPortalFramesToInventory (default = true): if enabled, portal frame blocks go directly into the player's inventory, reducing the risk of destruction. If inventory is full, items drop normally
sendMessageOnExtraDragonEggDrop (default = true): whether to send a message to the player about where the extra dragon egg will drop

Compatibility
Requires the Collective (Fabric) library and Fabric API to function.