Rotate
Provides a direction rotated on the specified orientation.
Type ID: kaya:rotate
| 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:
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. |