{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.water_drinkable": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            {
              "can_use": "!q.is_baby"
            }
          ]
        },
        "can_use": {
          "transitions": [
            {
              "can_drink": "q.is_on_ground ? {t.x_offset = -math.sin(q.body_y_rotation) * 2.5; t.z_offset = math.cos(q.body_y_rotation) * 2.5; v.can_drink = q.relative_block_has_any_tag(t.x_offset, -1.0, t.z_offset, 'water');}: {v.can_drink = 0;}; return (v.can_drink ?? 0) && !query.property('silverlabs_nat:can_drink');"
            },
            {
              "can_move_to_water": "query.property('silverlabs_nat:can_drink') && !(v.can_drink ?? 0)"
            }
          ]
        },
        "can_drink": {
          "on_entry": ["@s silverlabs_nat:can_drink"],
          "transitions": [
            {
              "can_use": "query.property('silverlabs_nat:can_drink')"
            }
          ]
        },
        "can_move_to_water": {
          "on_entry": ["@s silverlabs_nat:can_move_to_water"],
          "transitions": [
            {
              "can_use": "!query.property('silverlabs_nat:can_drink')"
            }
          ]
        }
      }
    }
  }
}
