{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.cbcl_lc.guide_book": {
			"initial_state": "spawn",
			"states": {
				"spawn": {
					"animations": ["spawn"],
					"transitions": [{ "default": "q.all_animations_finished" }]
				},
				"default": {
					"transitions": [
						{ "change_page_down": "q.is_illager_captain" },
						{ "change_page_up": "q.is_saddled" },
						{ "despawn": "q.is_sheared" }
					]
				},
				"change_page_down": {
					"animations": ["change_page_down"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					]
				},
				"change_page_up": {
					"animations": ["change_page_up"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					]
				},
				"despawn": {
					"animations": ["despawn"]
				}
			}
		},
		"controller.animation.cbcl_lc.guide_book.distance": {
			"initial_state": "open",
			"states": {
				"open": {
					"animations": ["open"],
					"transitions": [{ "opened": "q.all_animations_finished" }]
				},
				"opened": {
					"animations": ["opened"],
					"transitions": [
						{ "close": "q.distance_from_camera > 5 || q.is_sheared" }
					]
				},
				"close": {
					"animations": ["close"],
					"transitions": [
						{
							"closed": "q.all_animations_finished"
						}
					]
				},
				"closed": {
					"animations": ["closed"],
					"transitions": [
						{
							"open": "q.distance_from_camera < 4 && !q.is_sheared"
						}
					]
				}
			}
		}
	}
}
