Skip to content

Rotate

Provides a direction rotated on the specified orientation.

Type ID: kaya:rotate

Format

Field Type Default Description
orientation Orientation Determines which orientation the direction is rotated.
direction Direction Provider The direction to rotate.
axis Axis Determines the axis of the rotation.

Orientation

A string that determines a rotation of a direction.

Values

Value Description
clockwise Rotates the direction clockwise.
counter_clockwise Rotates the direction counter-clockwise.
Rotation of directions

Here's a table that lists all the possible orientations and rotations of every direction in every axis:

Direction Rotated Direction
down south
up north
north down
south up
west west
east east
Direction Rotated Direction
down down
up up
north east
south west
west north
east south
Direction Rotated Direction
down west
up east
north north
south south
west up
east down
Direction Rotated Direction
down north
up south
north up
south down
west west
east east
Direction Rotated Direction
down down
up up
north west
south east
west south
east north
Direction Rotated Direction
down east
up west
north north
south south
west down
east up

Example

{
    "type": "kaya:rotate",
    "orientation": "clockwise",
    "direction": "north",
    "axis": "x"
}

This example provides the north direction rotated clockwise on the X axis (which will be down.)

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.