{
	"format_version": "1.19.60",
	"minecraft:entity": {
		"description": {
			"identifier": "v360:wandering_archeologist",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"managed": {
				"minecraft:managed_wandering_trader": {}
			},
			"despawning": {
				"minecraft:type_family": {
					"family": [
						"wandering_archeologist",
						"wandering_archeologist_despawning",
						"mob"
					]
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"wandering_archeologist",
					"mob"
				]
			},
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:timer": {
				"looping": false,
				"random_time_choices": [
					{
						"weight": 50,
						"value": 2400
					},
					{
						"weight": 50,
						"value": 3600
					}
				],
				"time_down_event": {
					"event": "minecraft:start_despawn",
					"target": "self"
				}
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:health": {
				"value": 20,
				"max": 20
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.9
			},
			"minecraft:movement": {
				"value": 0.5
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": true,
				"can_pass_doors": true,
				"can_open_doors": false,
				"avoid_water": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:home": {
				"restriction_radius": 16
			},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:despawn": {
				"remove_child_entities": true,
				"filters": {
					"all_of": [
						{
							"any_of": [
								{
									"test": "is_family",
									"subject": "self",
									"value": "wandering_archeologist_despawning"
								},
								{
									"test": "has_trade_supply",
									"subject": "self",
									"value": false
								}
							]
						},
						{
							"test": "distance_to_nearest_player",
							"operator": ">",
							"value": 24
						}
					]
				}
			},
			"minecraft:behavior.trade_with_player": {
				"priority": 1,
				"filters": {
					"all_of": [
						{
							"all_of": [
								{
									"test": "in_water",
									"value": false
								}
							]
						},
						{
							"any_of": [
								{
									"test": "on_ground",
									"value": true
								},
								{
									"test": "is_sleeping",
									"value": true
								}
							]
						}
					]
				}
			},
			"minecraft:behavior.trade_interest": {
				"priority": 3,
				"within_radius": 6,
				"interest_time": 45,
				"remove_item_time": 1,
				"carried_item_switch_time": 2,
				"cooldown": 2
			},
			"minecraft:behavior.look_at_trading_player": {
				"priority": 4
			},
			"minecraft:behavior.panic": {
				"priority": 1,
				"speed_multiplier": 0.6
			},
			"minecraft:behavior.drink_potion": {
				"priority": 1,
				"speed_modifier": -0.2,
				"potions": [
					{
						"id": 7,
						"chance": 1,
						"filters": {
							"all_of": [
								{
									"any_of": [
										{
											"test": "hourly_clock_time",
											"operator": ">=",
											"value": 18000
										},
										{
											"test": "hourly_clock_time",
											"operator": "<",
											"value": 12000
										}
									]
								},
								{
									"test": "is_visible",
									"subject": "self",
									"value": true
								},
								{
									"any_of": [
										{
											"test": "is_avoiding_mobs",
											"subject": "self",
											"value": true
										}
									]
								}
							]
						}
					},
					{
						"id": 8,
						"chance": 1,
						"filters": {
							"all_of": [
								{
									"test": "hourly_clock_time",
									"operator": ">=",
									"value": 12000
								},
								{
									"test": "hourly_clock_time",
									"operator": "<",
									"value": 18000
								},
								{
									"test": "is_visible",
									"subject": "self",
									"value": true
								}
							]
						}
					}
				]
			},
			"minecraft:behavior.avoid_mob_type": {
				"priority": 2,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "zombie"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "zombie_villager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "zombie_pigman"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "illager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "vex"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "zoglin"
								}
							]
						},
						"walk_speed_multiplier": 0.6,
						"sprint_speed_multiplier": 0.6
					}
				],
				"max_dist": 6
			},
			"minecraft:behavior.drink_milk": {
				"priority": 5,
				"filters": {
					"all_of": [
						{
							"test": "is_daytime",
							"value": true
						},
						{
							"test": "is_visible",
							"subject": "self",
							"value": false
						},
						{
							"test": "is_avoiding_mobs",
							"subject": "self",
							"value": false
						}
					]
				}
			},
			"minecraft:behavior.move_towards_home_restriction": {
				"priority": 6,
				"speed_multiplier": 0.6
			},
			"minecraft:behavior.random_stroll": {
				"priority": 7,
				"speed_multiplier": 0.6
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8,
				"look_distance": 8,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:nameable": {},
			"minecraft:spawn_entity": {
				"entities": {
					"should_leash": true,
					"num_to_spawn": 1,
					"spawn_entity": "minecraft:mule",
					"spawn_event": "v360:from_wandering_archeologist",
					"single_use": true,
					"min_wait_time": 0,
					"max_wait_time": 0
				}
			},
			"minecraft:economy_trade_table": {
				"display_name": "entity.wandering_archeologist.name",
				"table": "trading/economy_trades/wandering_archeologist_trades.json",
				"new_screen": true
			}
		},
		"events": {
			"minecraft:scheduled": {
				"add": {
					"component_groups": [
						"managed"
					]
				}
			},
			"minecraft:start_despawn": {
				"add": {
					"component_groups": [
						"despawning"
					]
				}
			}
		}
	}
}