flying-with-sword
This project adds a sword-flight enchantment effect to MC, solving the problem of difficult travel in Minecraft.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
flying-with-sword
FJmode · Sword Flight & Myriad Swords Return 🗡️
> 「Take the sword as wings, ride the wind; With a single thought, myriad swords return to their master」
A Fabric enchantment expansion mod built for Minecraft 1.21.11, transforming swords from mere melee tools into your wings—your legions of thousands.
---
✨ Core Gameplay
🌪️ Sword Flight
*Ride the sword with the wind, roaming freely between heaven and earth*
| Feature | Description | |:---|:---| | Durability Balance | Hold an enchanted sword to enter custom flight, with speed comparable to vanilla elytra gliding | | Durability Balance | Player stands on the sword, held sword is hidden; a matching sword model is rendered beneath the feet in real-time, following the player's pitch | | Durability Balance | Press `Ctrl` during flight to trigger sustained acceleration (consumes extra saturation) | | Durability Balance | Flight continuously consumes the sword's durability—plan long journeys carefully |
> ⚠️ Melee attacks against entities are disabled during flight; focus on the path of the sky
---
⚔️ Myriad Swords Return
*One sword strikes, myriad swords follow; a thought moves, enemies all fall*
| Feature | Description | |:---|:---| | Entity Retention | Right-click and hold to charge like a trident, release to launch the main hand sword as a flying sword | | Entity Retention | Multiplie flying swords orbit in three-dimensional space above the player, forming a spectacular sword formation | | Entity Retention | Automatically locks onto and tracks targets upon melee or ranged hit | | Entity Retention | Single sword calculates a guaranteed hit trajectory; the swarm strikes simultaneously, dealing damage equal to total attack power ÷ 3 | | Entity Retention | After hitting, flying swords bounce back into formation, immediately ready to lock onto new targets for sustained output | | Entity Retention | After 60 seconds or when the player goes offline, flying swords materialize and stick into the ground, awaiting retrieval |
> Obtained from the enchanting table, max level I, medium-low rarity weight
---
🎨 Visual Highlights
- Myriad Swords Return: Sword model rotates in real-time following the player's camera angle, with natural pitch movement - Myriad Swords Return: Client-side smooth interpolation combined with velocity vector-based orientation ensures fluid, jitter-free swarm trajectories; each flying sword has a 45° compensation to ensure the tip points forward
---
📝 Notes
- Uses Mojang Official Mappings; some class names in Fabric tutorials may differ (e.g., `ServerPlayer` instead of `ServerPlayerEntity`) - Virtual flying swords for Myriad Swords Return are server-side memory objects, not vanilla entities; hit detection and damage calculation are purely server-side
---
🛠️ Technical Information
| Item | Version | |:---|:---| | Minecraft | `1.21.11` | | Fabric Loader | `0.18.2` | | Fabric API | `0.139.4+1.21.11` | | Java | `21` | | Mappings | Mojang Official |
---
*May your sword be both a shield of protection and the wind of freedom* 🍃