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...
NameRotate
Syntaxrotate (cancel) (<entity>|...) (yaw:<#.#>) (pitch:<#.#>) (infinite/duration:<duration>) (frequency:<duration>)
Short DescriptionRotates a list of entities.
Full DescriptionInduces incremental rotation on a list of entities over a period of time.

The yaw and pitch arguments specify how much the entity will rotate each step. Default to 10 and 0 respectively.

The frequency argument specifies how long it takes between each rotation step. Defaults to 1t.

The duration argument specifies how long the whole rotation process will last. Defaults to 1s.
Alternatively, use "infinite" if you want the entity to spin forever.

You can use "cancel" to prematurely stop the ongoing rotation (useful when set to infinite)

The rotate command is ~waitable. Refer to Language:~waitable.
Related Tags<EntityTag.location> Returns the location of the entity. (...)
Usage Example
# Use to rotate the player's yaw by 10 every tick for 3 seconds total
- rotate <player> duration:3s
Usage Example
# Use to rotate the player's pitch by 20 every 5 ticks for a second total
- rotate <player> yaw:0.0 pitch:20.0 frequency:5t
Usage Example
# Use to prematurely stop the player's rotation
- rotate cancel <player>
Synonyms (Search Aid)spin
Groupentity
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/RotateCommand.java#L30