{
	"format_version": "1.19.40",
	"minecraft:entity": {
		"description": {
			"identifier": "agp:decoy_block2",
			"is_spawnable": false,
			"is_summonable": false,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"Out",
					"Del",
					"Dam",
					"AM",
					"Re"
				]
			},
			"animations": {
				"Out": "animation.Out",
				"Del": "animation.Del",
				"Dam": "animation.Dam",
				"AM": "animation.AM",
				"Re": "animation.Re"
			}
		},
		"component_groups": {
			"TimeToDrop": {
				"minecraft:timer": {
					"looping": false,
					"time": [
						17,
						28
					],
					"time_down_event": {
						"event": "FallDown",
						"target": "self"
					}
				}
			},
			"exploding": {
				"minecraft:spawn_entity": {
					"entities": {
						"min_wait_time": 0,
						"max_wait_time": 0,
						"single_use": true,
						"num_to_spawn": 4,
						"spawn_entity": "agp:decoy_block"
					}
				},
				"minecraft:explode": {
					"fuse_length": 0,
					"fuse_lit": true,
					"power": 3,
					"causes_fire": false,
					"destroy_affected_by_griefing": true,
					"fire_affected_by_griefing": false
				}
			},
			"Despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:tick_world": {
				"distance_to_players": 200,
				"never_despawn": false
			},
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"inanimate",
					"decoy_block"
				]
			},
			"minecraft:health": {
				"value": 40,
				"max": 40
			},
			"minecraft:attack": {
				"damage": 0
			},
			"minecraft:collision_box": {
				"width": 1.5,
				"height": 1.5
			},
			"minecraft:movement": {
				"value": 2
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": {
							"all_of": [
								{
									"test": "has_tag",
									"subject": "self",
									"value": "Del"
								},
								{
									"test": "on_ground",
									"subject": "self",
									"value": true
								}
							]
						},
						"event": "trigger_exploding",
						"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": {},
			"minecraft:conditional_bandwidth_optimization": {
				"default_values": {
					"max_optimized_distance": 23,
					"max_dropped_ticks": 0
				}
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"trigger": "TimeToDrop"
			},
			"minecraft:entity_transformed": {
				"trigger": "TimeToDrop"
			},
			"minecraft:entity_born": {
				"trigger": "TimeToDrop"
			},
			"TimeToDrop": {
				"add": {
					"component_groups": [
						"TimeToDrop"
					]
				}
			},
			"FallDown": {
				"run_command": {
					"command": [
						"tag @s add Fall"
					]
				}
			},
			"Despawn": {
				"add": {
					"component_groups": [
						"Despawn"
					]
				}
			},
			"random_path": {
				"randomize": [
					{
						"run_command": {
							"command": [
								"tag @s add PU1"
							]
						}
					},
					{
						"run_command": {
							"command": [
								"tag @s add PU2"
							]
						}
					},
					{
						"run_command": {
							"command": [
								"tag @s add PU3"
							]
						}
					}
				]
			},
			"trigger_exploding": {
				"add": {
					"component_groups": [
						"exploding"
					]
				}
			}
		}
	}
}