Bedrock Snippets

Beginner's Guide

View Source

guide > rp > animation_controllers > ghost.ac.json

{
    "format_version": "1.12.0",
    "animation_controllers": {
        "controller.animation.ghost.attack": {
            "states": {
                "default": {
                    "transitions": [
                        { "attacking": "query.is_delayed_attacking" }
                    ]
                },
                "attacking": {
                    "blend_transition": 0.2,
                    "animations": ["attack"],
                    "transitions": [
                        { "default": "!query.is_delayed_attacking" }
                    ]
                }
            }
        },
        "controller.animation.ghost.walk": {
            "initial_state": "standing",
            "states": {
                "standing": {
                    "blend_transition": 0.2,
                    "animations": ["idle"],
                    "transitions": [
                        { "moving": "query.modified_move_speed > 0.1" }
                    ]
                },
                "moving": {
                    "blend_transition": 0.2,
                    "animations": ["move"],
                    "transitions": [
                        { "standing": "query.modified_move_speed < 0.1" }
                    ]
                }
            }
        }
    }
}
Copied to Clipboard