Fly True [Creative Flight Replica]
Adds a Fly command. An attempt to replicate Minecraft's Creative Mode flight mechanics in Survival. No Cheats. No Education Edition.
Description
An attempt to replicate Minecraft's vanilla Creative Mode flight as closely as possible.
This implementation may still require further improvements. it provides a flying experience with features such as double-jump flight activation, smooth hovering, momentum-based movement, and independent horizontal and vertical controls.
No Cheats
No Education Edition.
Commands
/fly true - enables your flight ability.
/fly false - disable your flight ability.
/flyaccess \<Enable\> - admin-only command to enable or disable public /fly access.
/flyplayer \<Target\> \<Enable\> - admin-only command to toggle fly for other players.
See the changelog for more details...
Please note that this add-on may or may not work alongside other packs or add-ons. If you encounter any issues, consider placing this add-on at the top of your pack list.
**If you really want to, try merger. It's a small tool to merge add-ons that conflict with each other. Sometimes, it works. **
This flight system is script-based and may experience stuttering or delayed movement when playing on multiplayer with low-performance servers.
Changelog
1.3.1
Fixes
Reduced the stutter when landing after leaving flight mode with a double jump. The main cause was
clearVelocity()being called every tick while the player hovered in place, which put the server and client positions out of sync. That call has been removed.Landing detection during flight now has to hold for 3 consecutive ticks. Previously, a flickering server-side
isOnGroundvalue could end flight mode unexpectedly.The
stop\_flyingevent is no longer sent twice; all flight-stopping logic now goes through a single function (stopFlying).When leaving flight mode with a double jump, leftover horizontal velocity is dampened so the player doesn't keep sliding.
Internal changes
player.json: theflyingandstop\_flycomponent groups now only changehas\_gravityand no longer touchpush\_towards\_closest\_space.state.js: addedgroundTicksto count consecutive on-ground ticks.movement.js: cleaned up, and theDEADZONEconstant is no longer used here.
Notes
The stutter is much less noticeable, but a small amount may still be felt on the client side.
Without
clearVelocity(), the player may drift very slightly while hovering in place.