{
	"format_version": "1.19.40",
	"minecraft:entity": {
		"description": {
			"identifier": "agp:decoy_fire",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"FG",
					"Del",
					"FireAmount",
					"SetFire"
				]
			},
			"animations": {
				"FG": "animation.FG",
				"Del": "animation.Del",
				"FireAmount": "animation.FireAmount",
				"SetFire": "animation.SetFire"
			}
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"TTL": {
				"minecraft:timer": {
					"looping": false,
					"time": [
						4,
						16
					],
					"time_down_event": {
						"event": "Launch"
					}
				}
			},
			"Spawned": {
				"minecraft:mark_variant": {
					"value": 0
				}
			}
		},
		"components": {
			"minecraft:tick_world": {
				"never_despawn": true
			},
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"inanimate",
					"agp",
					"decoy_block",
					"fire"
				]
			},
			"minecraft:health": {
				"value": 10,
				"max": 10
			},
			"minecraft:attack": {
				"damage": 0
			},
			"minecraft:collision_box": {
				"width": 0,
				"height": 0
			},
			"minecraft:movement": {
				"value": 2
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": {
							"test": "on_ground",
							"subject": "self",
							"value": true
						},
						"event": "FG",
						"target": "self"
					}
				]
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "fall",
						"deals_damage": false
					}
				]
			},
			"minecraft:fire_immune": true,
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 3,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "tornado0"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "tornado1"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "tornado2"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "tornado3"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "tornado4"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "tornado5"
								}
							]
						},
						"max_dist": 1280
					}
				]
			},
			"minecraft:physics": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"TTL",
						"Spawned"
					]
				}
			},
			"Launch": {
				"run_command": {
					"command": [
						"tag @s add Fall"
					]
				}
			},
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"FG": {
				"run_command": {
					"command": [
						"execute as @s at @s run setblock ~~~ fire",
						"event entity @s despawn"
					]
				}
			},
			"TriggerFireToPlayer": {
				"run_command": {
					"command": [
						"execute as @s at @s run event entity @a[r=2,c=1] PlayerFire"
					]
				}
			}
		}
	}
}