{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "shapescape:citizen_esb",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"citizen_interaction",
					"citizen_init",
					"reset_random_block_target"
				]
			},
			"animations": {
				"citizen_interaction": "controller.animation.citizen_interaction",
				"citizen_init": "controller.animation.citizen_init",
				"reset_random_block_target": "animation.citizen.reset_random_block_target"
			}
		},
		"component_groups": {
			"shapescape:can_despawn_from_distance": {
				"minecraft:despawn": {
					"despawn_from_distance": {
						"max_distance": 50
					}
				}
			},
			"shapescape:move_to_random_block": {
				"minecraft:behavior.move_to_random_block": {
					"priority": 6,
					"speed_multiplier": 0.8,
					"within_radius": 8,
					"block_distance": 150
				}
			},
			"shapescape:despawn": {
				"minecraft:instant_despawn": {}
			},
			"shapescape:variant0": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"shapescape:variant1": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"shapescape:variant2": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"shapescape:variant3": {
				"minecraft:variant": {
					"value": 3
				}
			},
			"shapescape:variant4": {
				"minecraft:variant": {
					"value": 4
				}
			},
			"shapescape:variant5": {
				"minecraft:variant": {
					"value": 5
				}
			},
			"shapescape:variant6": {
				"minecraft:variant": {
					"value": 6
				}
			},
			"shapescape:variant7": {
				"minecraft:variant": {
					"value": 7
				}
			},
			"shapescape:variant8": {
				"minecraft:variant": {
					"value": 8
				}
			},
			"shapescape:variant9": {
				"minecraft:variant": {
					"value": 9
				}
			},
			"shapescape:variant10": {
				"minecraft:variant": {
					"value": 10
				}
			},
			"shapescape:variant11": {
				"minecraft:variant": {
					"value": 11
				}
			},
			"shapescape:variant12": {
				"minecraft:variant": {
					"value": 12
				}
			},
			"shapescape:variant13": {
				"minecraft:variant": {
					"value": 13
				}
			},
			"shapescape:variant14": {
				"minecraft:variant": {
					"value": 14
				}
			},
			"shapescape:variant15": {
				"minecraft:variant": {
					"value": 15
				}
			},
			"shapescape:variant16": {
				"minecraft:variant": {
					"value": 16
				}
			},
			"shapescape:on_interaction": {
				"minecraft:is_baby": {}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"is_pushable_by_car",
					"shapescape",
					"shapescape_"
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:health": {
				"value": 10,
				"max": 10
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "is_family",
								"subject": "damager",
								"value": "vehicle"
							},
							"event": "shapescape:add_beep_scary",
							"target": "other"
						},
						"deals_damage": false
					},
					{
						"deals_damage": false
					}
				]
			},
			"minecraft:movement": {
				"value": {
					"range_min": 0.2,
					"range_max": 0.3
				}
			},
			"minecraft:follow_range": {
				"value": 200
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": false,
				"avoid_water": true,
				"avoid_damage_blocks": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.8
			},
			"minecraft:custom_hit_test": {
				"hitboxes": [
					{
						"height": 2.2,
						"width": 0.9,
						"pivot": [
							0,
							1.1,
							0
						]
					}
				]
			},
			"minecraft:behavior.float": {
				"priority": 2
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8,
				"look_distance": 6.0,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:timer": {
				"looping": true,
				"time": [
					15,
					15
				],
				"time_down_event": {
					"event": "shapescape:can_despawn_from_distance",
					"target": "self"
				}
			},
			"minecraft:preferred_path": {
				"max_fall_blocks": 2,
				"jump_cost": 5,
				"default_block_cost": 5,
				"preferred_path_blocks": [
					{
						"cost": 1,
						"blocks": [
							"purpur_block",
							"stone",
							"red_sandstone",
							"double_stone_slab",
							"magenta_glazed_terracotta",
							"wooden_slab",
							"smooth_stone",
							"monster_egg",
							"coal_ore",
							"hardened_clay",
							"iron_ore",
							"brown_glazed_terracotta",
							"blue_glazed_terracotta",
							"cyan_glazed_terracotta",
							"stonebrick",
							"end_bricks",
							"end_stone"
						]
					},
					{
						"cost": 8,
						"blocks": [
							"stone_stairs"
						]
					},
					{
						"cost": 12,
						"blocks": [
							"concrete_powder",
							"light_gray_concrete_powder",
							"planks",
							"sandstone"
						]
					},
					{
						"cost": 25,
						"blocks": [
							"orange_glazed_terracotta",
							"lime_glazed_terracotta",
							"podzol",
							"red_nether_brick",
							"stained_hardened_clay",
							"stone_slab",
							"quartz_stairs",
							"stone_slab4",
							"brick_block",
							"wool",
							"leaves",
							"leaves2",
							"grass",
							"dirt",
							"nether_brick",
							"stained_glass"
						]
					},
					{
						"cost": 50,
						"blocks": [
							"nether_brick_fence",
							"yellow_glazed_terracotta",
							"pink_glazed_terracotta",
							"purple_glazed_terracotta",
							"gray_glazed_terracotta",
							"black_glazed_terracotta",
							"concrete",
							"gray_concrete",
							"coral",
							"coral_fan_dead",
							"nether_wart_block"
						]
					},
					{
						"cost": 100,
						"blocks": [
							"acacia_button",
							"barrier",
							"stained_glass_pane",
							"iron_bars"
						]
					}
				]
			},
			"minecraft:interact": {
				"interactions": [
					{
						"interact_text": "citizen.interact",
						"on_interact": {
							"event": "shapescape:on_interaction"
						},
						"cooldown": 7
					}
				]
			},
			"minecraft:behavior.avoid_mob_type": {
				"priority": 0,
				"max_dist": 16,
				"entity_types": [
					{
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								{
									"test": "has_component",
									"subject": "other",
									"value": "minecraft:is_illager_captain"
								}
							]
						},
						"walk_speed_multiplier": 2,
						"sprint_speed_multiplier": 2,
						"must_see": false,
						"max_dist": 5,
						"max_flee": 10
					},
					{
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "vehicle"
								},
								{
									"test": "has_component",
									"subject": "other",
									"value": "minecraft:is_sheared"
								}
							]
						},
						"walk_speed_multiplier": 2,
						"sprint_speed_multiplier": 2,
						"must_see": false,
						"max_dist": 16,
						"max_flee": 25
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:conditional_bandwidth_optimization": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"randomize": [
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant0"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant1"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant2"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant3"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant4"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant5"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant6"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant7"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant8"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant9"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant10"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant11"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant12"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant13"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant14"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant15"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shapescape:variant16"
									]
								}
							}
						]
					}
				]
			},
			"shapescape:can_despawn_from_distance": {
				"add": {
					"component_groups": [
						"shapescape:can_despawn_from_distance"
					]
				}
			},
			"shapescape:move_to_random_block": {
				"add": {
					"component_groups": [
						"shapescape:move_to_random_block"
					]
				}
			},
			"shapescape:on_interaction_clear": {
				"remove": {
					"component_groups": [
						"shapescape:on_interaction"
					]
				}
			},
			"shapescape:on_interaction": {
				"add": {
					"component_groups": [
						"shapescape:on_interaction"
					]
				}
			},
			"shapescape:despawn": {
				"add": {
					"component_groups": [
						"shapescape:despawn"
					]
				}
			},
			"shapescape:variant0": {
				"add": {
					"component_groups": [
						"shapescape:variant0"
					]
				}
			},
			"shapescape:variant1": {
				"add": {
					"component_groups": [
						"shapescape:variant1"
					]
				}
			},
			"shapescape:variant2": {
				"add": {
					"component_groups": [
						"shapescape:variant2"
					]
				}
			},
			"shapescape:variant3": {
				"add": {
					"component_groups": [
						"shapescape:variant3"
					]
				}
			},
			"shapescape:variant4": {
				"add": {
					"component_groups": [
						"shapescape:variant4"
					]
				}
			},
			"shapescape:variant5": {
				"add": {
					"component_groups": [
						"shapescape:variant5"
					]
				}
			},
			"shapescape:variant6": {
				"add": {
					"component_groups": [
						"shapescape:variant6"
					]
				}
			},
			"shapescape:variant7": {
				"add": {
					"component_groups": [
						"shapescape:variant7"
					]
				}
			},
			"shapescape:variant8": {
				"add": {
					"component_groups": [
						"shapescape:variant8"
					]
				}
			},
			"shapescape:variant9": {
				"add": {
					"component_groups": [
						"shapescape:variant9"
					]
				}
			},
			"shapescape:variant10": {
				"add": {
					"component_groups": [
						"shapescape:variant10"
					]
				}
			},
			"shapescape:variant11": {
				"add": {
					"component_groups": [
						"shapescape:variant11"
					]
				}
			},
			"shapescape:variant12": {
				"add": {
					"component_groups": [
						"shapescape:variant12"
					]
				}
			},
			"shapescape:variant13": {
				"add": {
					"component_groups": [
						"shapescape:variant13"
					]
				}
			},
			"shapescape:variant14": {
				"add": {
					"component_groups": [
						"shapescape:variant14"
					]
				}
			},
			"shapescape:variant15": {
				"add": {
					"component_groups": [
						"shapescape:variant15"
					]
				}
			},
			"shapescape:variant16": {
				"add": {
					"component_groups": [
						"shapescape:variant16"
					]
				}
			}
		}
	}
}