//bridge-file-version: #11
{
	"format_version": "1.19.40",
	"minecraft:entity": {
		"description": {
			"identifier": "agp:player_air2",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"TagPR",
					"RA"
				]
			},
			"animations": {
				"TagPR": "animation.TagPR",
				"RA": "animation.RA"
			}
		},
		"component_groups": {
			"Despawn": {
				"minecraft:instant_despawn": {}
			},
			"TimeLaunch": {
				"minecraft:timer": {
					"looping": false,
					"time": [
						21,
						39
					],
					"time_down_event": {
						"event": "LD",
						"target": "self"
					}
				}
			}
		},
		"components": {
			"minecraft:collision_box": {
				"width": 0.82,
				"height": 0.82
			},
			"minecraft:movement.basic": {},
			"minecraft:movement": {
				"value": 0.17
			},
			"minecraft:type_family": {
				"family": [
					"inanimate",
					"agp",
					"player_air",
					"pia"
				]
			},
			"minecraft:rideable": {
				"priority": 0,
				"controlling_seat": 1,
				"seat_count": 1,
				"crouching_skip_interact": true,
				"pull_in_entities": true,
				"rider_can_interact": true,
				"family_types": [
					"player"
				],
				"seats": [
					{
						"lock_rider_rotation": 360,
						"max_rider_count": 1,
						"min_rider_count": 1,
						"position": [
							0,
							0.05,
							0
						]
					}
				]
			},
			"minecraft:input_ground_controlled": {},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": {
							"all_of": [
								{
									"test": "rider_count",
									"subject": "self",
									"operator": "==",
									"value": 0
								},
								{
									"test": "distance_to_nearest_player",
									"subject": "self",
									"operator": ">",
									"value": 50
								}
							],
							"none_of": [
								{
									"all_of": [
										{
											"test": "rider_count",
											"subject": "self",
											"operator": "==",
											"value": 1
										},
										{
											"test": "distance_to_nearest_player",
											"subject": "self",
											"operator": "<=",
											"value": 50
										}
									]
								}
							]
						},
						"event": "Despawn"
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"TimeLaunch"
					]
				}
			},
			"Despawn": {
				"add": {
					"component_groups": [
						"Despawn"
					]
				}
			},
			"LD": {
				"run_command": {
					"command": [
						"execute @s ~~~ tag @s add PP",
						"execute @s ~~~ execute @p[r=38,tag=RL,tag=!IS,tag=!BO,c=1] ~~~ tp ~~~ facing ~~0.57~1",
						"execute @s ~~~ execute @p[r=38,tag=RL,tag=!IS,tag=!BO,c=1] ~~~ event entity @s Launch2",
						"execute @s ~~~ execute @p[r=38,tag=RL,tag=!IS,tag=!BO,c=1] ~~~ tag @s remove OG",
						"execute @s ~~~ execute @p[r=38,tag=RL,tag=!IS,tag=!BO,c=1] ~~~ tag @s remove PF",
						"event entity @s Despawn"
					]
				}
			},
			"TD": {
				"run_command": {
					"command": [
						"tag @s add TD"
					]
				}
			},
			"TR": {
				"run_command": {
					"command": [
						"tag @s remove TD"
					]
				}
			}
		}
	}
} //Made by ItzJeremicer