| Name | Fly |
| Syntax | fly (cancel) [<entity>|...] (controller:<player>) (origin:<location>) (destinations:<location>|...) (speed:<#.#>) (rotationthreshold:<#.#>) |
| Short Description | Make an entity fly where its controller is looking or fly to waypoints. |
| Full Description | Make an entity fly where its controller is looking or fly to waypoints.
This is particularly useful as a way to make flying entities rideable (or make a non-flying entity start flying). Optionally specify a list of "destinations" to make it move through a series of checkpoints (disabling the "controller" functionality). Optionally specify an "origin" location where the entities should teleport to at the start. Optionally specify the "speed" argument to set how fast the entity should fly. Optionally specify the "rotationthreshold" to set the minimum threshold (in degrees) before the entity should forcibly rotate to the correct direction. Use the "cancel" argument to stop an existing flight. |
| Related Tags | <PlayerTag.can_fly> Returns whether the player is allowed to fly. (...)
<PlayerTag.fly_speed> Returns the speed the player can fly at. (...)
<PlayerTag.is_flying> Returns whether the player is currently flying.
|
| Usage Example | |
| Group | entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/FlyCommand.java#L36 |