Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameFly
Syntaxfly (cancel) [<entity>|...] (controller:<player>) (origin:<location>) (destinations:<location>|...) (speed:<#.#>) (rotationthreshold:<#.#>)
Short DescriptionMake an entity fly where its controller is looking or fly to waypoints.
Full DescriptionMake 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
# Use to make a player ride+fly a newly spawned dragon.
- fly <player>|ender_dragon
Groupentity
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/FlyCommand.java#L36