{
  "format_version": "1.10.0",
    "animation_controllers": {
        "controller.animation.ac.sit": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "is_riding": "query.is_riding"
                        },
                        {
                            "on_ground": "query.is_stunned"
                        }
                    ],
                    "blend_transition": 0.2
                },
                "on_ground": {
                    "animations": [
                        "sit"
                    ],
                    "transitions": [
                        {
                            "default": "!query.is_stunned"
                        }
                    ],
                    "blend_transition": 0.2
                },
                "is_riding": {
                    "animations": [
                        "sit"
                    ],
                    "transitions": [
                        {
                            "default": "!query.is_riding"
                        }
                    ],
                    "blend_transition": 0.2
                }
            }
        },


        "controller.animation.ac.attack": {
            "initial_state": "default",
            "states": {
                "attack": {
                    "animations": [
                        "attack"
                    ],
                    "transitions": [
                        {
                            "default": "!query.is_delayed_attacking"
                        }
                    ]
                },
                "default": {
                    "transitions": [
                        {
                            "attack": "query.is_delayed_attacking"
                        }
                    ]
                }
            }
        },
        "controller.animation.ac.blink": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "blink": "math.random_integer(1, 300)==1 ? true : false"
                        }
                    ]
                },
                "blink": {
                    "animations": [
                        "blink"
                    ]
                }
            }
        },
        "controller.animation.ac.blinkMask": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "blink": "math.random_integer(1, 100)==1 ? true : false"
                        }
                    ]
                },
                "Mask": {
                    "transitions": [
                        {
                            "blink": "(q.time_of_day > 0.25 && q.time_of_day < 0.75) ? true : false"
                        }
                    ]
                },
                "blink": {
                    "animations": [
                        "blink"
                    ],
                    "transitions": [
                        {
                            "Mask": "!(q.time_of_day > 0.25 && q.time_of_day < 0.75) ? true : false"
                        }
                    ]
                }
            }
        },
        "controller.animation.ac.blinkMask2": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "blink": "math.random_integer(1, 100)==1 ? true : false"
                        }
                    ]
                },
                "Mask": {
                    "transitions": [
                        {
                            "blink": "!(q.time_of_day > 0.25 && q.time_of_day < 0.75) ? true : false"
                        }
                    ]
                },
                "blink": {
                    "animations": [
                        "blink"
                    ],
                    "transitions": [
                        {
                            "Mask": "(q.time_of_day > 0.25 && q.time_of_day < 0.75) ? true : false"
                        }
                    ]
                }
            }
        },
        "controller.animation.ac.swimming": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "swimming": "!q.is_stunned && q.is_in_water"
                        }
                    ],
                    "blend_transition": 0.5
                },
                "swimming": {
                    "animations": [
                        {
                            "swimming": "q.modified_move_speed"
                        }
                    ],
                    "transitions": [
                        {
                            "default": "q.is_stunned || !q.is_in_water"
                        }
                    ],
                    "blend_transition": 0.5
                }
            }
        },
        //Evita el mov. de las extrem. mientras este nadando
        "controller.animation.ac.move": {
            "initial_state": "default",
            "states": {
                "default": {
                    "animations": [
                        "move"
                    ],
                    "transitions": [
                        {
                            "swimming": "!query.is_stunned && query.is_in_water"
                        }
                    ],
                    "blend_transition": 0.2
                },
                "swimming": {
                    "transitions": [
                        {
                            "default": "query.is_stunned || !query.is_in_water"
                        }
                    ],
                    "blend_transition": 0.2
                }

            }
        },
        "controller.animation.ac.savesword": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "savesword": "!query.has_target || query.is_stunned"
                        }
                    ],
                    "blend_transition": 0.2
                },
                "savesword": {
                    "animations": [
                        "savesword"
                    ],
                    "transitions": [
                        {
                            "default": "query.has_target && !query.is_stunned"
                        }
                    ],
                    "blend_transition": 0.2
                }
            }
        },
        //Guarda el arco
        "controller.animation.bow.attack": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        {
                            "bow_and_arrow": "query.has_target"
                        }
                    ],
                    "blend_transition": 0.15
                },
                "bow_and_arrow": {
                    "animations": [
                        "bow_and_arrow"
                    ],
                    "transitions": [
                        {
                            "default": "!query.has_target"
                        }
                    ],
                    "blend_transition": 0.15
                }
            }
        },
        "controller.animation.ac.attachables": {
            "initial_state": "first_person",
            "states": {
                "first_person": {
                    "animations": [
                        {
                            "wield_main_hand_first_person": "c.item_slot == 'main_hand'"
                        }
                    ],
                    "transitions": [
                        {
                            "third_person": "!c.is_first_person"
                        }
                    ]
                },
                "third_person": {
                    "animations": [
                        "wield_third_person"
                    ],
                    "transitions": [
                        {
                            "first_person": "c.is_first_person"
                        }
                    ]
                }
            }
        } /*,
        "controller.animation.ac.testAnimation": {
            "initial_state": "default",
            "states": {
                "default": {
                    "animations": [
                        {
                            "swimming": "0.6" //Animaciones a probar
                        }
                    ]
                   
                  
                }
            }
        }*/
    }
}