{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.snake.digest": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "digest": "query.property('silverlabs_nat:digested_item')" }
          ]
        },
        "digest": {
          "on_entry": [
            "/replaceitem entity @s slot.inventory 0 air",
            "/replaceitem entity @s slot.weapon.mainhand 0 air",
            "@s silverlabs_nat:snake_on_finish_eat"
          ],
          "transitions": [
            { "default": "1" }
          ]
        }
      }
    },
    "controller.animation.silverlabs_nat.snake.food_check": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "test": "q.is_item_equipped(0)" }
          ]
        },
        "test": {
          "on_entry": [
            "/scriptevent silverlabs_nat:snake_check"
          ],
          "transitions": [
            { "default": "!q.is_item_equipped(0)" }
          ]
        }
      }
    },
    "controller.animation.silverlabs_nat.snake.wake_up_check": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "wake_up": "q.is_in_love" },
            { "can_sleep": "!q.is_in_love" }
          ]
        },
        "wake_up": {
          "on_entry": [
            "/tag @s add woken_up"
          ],
          "transitions": [
            { "can_sleep": "!q.is_in_love" }
          ]
        },
        "can_sleep": {
          "on_entry": [
            "/tag @s remove woken_up"
          ],
          "transitions": [
            { "wake_up": "q.is_in_love" }
          ]
        }
      }
    }
  }
}
