Skip to content

Add minecraft:set_rotation entity modifier#6

Merged
ErrorCraft merged 1 commit intomasterfrom
set_rotation
Jun 12, 2022
Merged

Add minecraft:set_rotation entity modifier#6
ErrorCraft merged 1 commit intomasterfrom
set_rotation

Conversation

@ErrorCraft
Copy link
Copy Markdown
Owner

Adds a minecraft:set_rotation entity modifier that sets the rotation of an entity. Rotations can also be relative.

Structure

Properties

rotation: A rotation provider. Specifies the rotation to use.

Example

{
    "function": "minecraft:set_rotation",
    "rotation": {
        "x": 10.0,
        "y": 45.0
    }
}


Rotation Provider

Provides a rotation similar to the one used in the teleport command.

Properties

x: A relative number provider. Specifies the rotation around the x-axis.
y: A relative number provider. Specifies the rotation around the y-axis.

Example

{
    "function": "minecraft:set_rotation",
    "rotation": {
        "x": 10.0,
        "y": {
            "value": 10.0,
            "relative": true
        }
    }
}

@ErrorCraft ErrorCraft merged commit 5e600af into master Jun 12, 2022
@ErrorCraft ErrorCraft deleted the set_rotation branch June 12, 2022 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant