{
	"format_version": "1.19.0",
	"animation_controllers": {
		"controller.animation.flashlight": {
			"states": {
				"default": {
					"on_entry": [
					    "/fill ~15 ~15 ~15 ~-15 ~-8 ~-15 air [] replace light_block"
					    ],
					"transitions": [
						{"light_north": "q.equipped_item_any_tag('slot.weapon.offhand','flashlight') && (q.equipped_item_any_tag('slot.weapon.mainhand','p2') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) && q.cardinal_player_facing==2.0"},
						{"light_south": "q.equipped_item_any_tag('slot.weapon.offhand','flashlight') && (q.equipped_item_any_tag('slot.weapon.mainhand','p2') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) && q.cardinal_player_facing==3.0"},
						{"light_east": "q.equipped_item_any_tag('slot.weapon.offhand','flashlight') && (q.equipped_item_any_tag('slot.weapon.mainhand','p2') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) && q.cardinal_player_facing==4.0"},
						{"light_west": "q.equipped_item_any_tag('slot.weapon.offhand','flashlight') && (q.equipped_item_any_tag('slot.weapon.mainhand','p2') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) && q.cardinal_player_facing==5.0"},
						{"light_up": "q.equipped_item_any_tag('slot.weapon.offhand','flashlight') && (q.equipped_item_any_tag('slot.weapon.mainhand','p2') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) && q.cardinal_player_facing==1.0"},
						{"light_down": "q.equipped_item_any_tag('slot.weapon.offhand','flashlight') && (q.equipped_item_any_tag('slot.weapon.mainhand','p2') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23') || q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) && q.cardinal_player_facing==0.0"}
					]
				},
				"light_north": {
					"animations":["flashnorth"],
					"transitions": [
						{"default": "!q.equipped_item_any_tag('slot.weapon.offhand','flashlight') || (!q.equipped_item_any_tag('slot.weapon.mainhand','p2') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) || q.cardinal_player_facing!=2.0"}
					]
				},
				"light_south": {
					"animations":["flashsouth"],
					"transitions": [
						{"default": "!q.equipped_item_any_tag('slot.weapon.offhand','flashlight') || (!q.equipped_item_any_tag('slot.weapon.mainhand','p2') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) || q.cardinal_player_facing!=3.0"}
					]
				},
				"light_east": {
					"animations":["flasheast"],
					"transitions": [
						{"default": "!q.equipped_item_any_tag('slot.weapon.offhand','flashlight') || (!q.equipped_item_any_tag('slot.weapon.mainhand','p2') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) || q.cardinal_player_facing!=4.0"}
					]
				},
				"light_west": {
					"animations":["flashwest"],
					"transitions": [
						{"default": "!q.equipped_item_any_tag('slot.weapon.offhand','flashlight') || (!q.equipped_item_any_tag('slot.weapon.mainhand','p2') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) || q.cardinal_player_facing!=5.0"}
					]
				},
				"light_up": {
					"animations":["flashup"],
					"transitions": [
						{"default": "!q.equipped_item_any_tag('slot.weapon.offhand','flashlight') || (!q.equipped_item_any_tag('slot.weapon.mainhand','p2') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) || q.cardinal_player_facing!=1.0"}
					]
				},
				"light_down": {
					"animations":["flashdown"],
					"transitions": [
						{"default": "!q.equipped_item_any_tag('slot.weapon.offhand','flashlight') || (!q.equipped_item_any_tag('slot.weapon.mainhand','p2') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23') && !q.equipped_item_any_tag('slot.weapon.mainhand','ar23p')) || q.cardinal_player_facing!=0.0"}
					]
				}
			}
		}
	}
}