{
	"format_version": "1.13.0",
	"minecraft:entity": {
		"description": {
			"identifier": "addon:hazmatguard",
			"runtime_identifier": "minecraft:piglin",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false,
			"scripts": {
				"animate": ["gas_mask"]
			},
			"animations": {
				"gas_mask": "controller.animation.gas_mask"
			}
		},
		"component_groups": {
			"test": {},
			"tamed": {
				"minecraft:is_tamed": {},
				"minecraft:sittable": {}
			}
		},
		"components": {
			"minecraft:spell_effects": {
				"add_effects": [{
					"effect": "regeneration",
					"amplifier": 1,
					"visible": false,
					"ambient": false,
					"duration": 99999
				}]
			},
			"minecraft:equipment": {
				"table": "loot_tables/guns/p90.json"
			},
			"minecraft:damage_sensor": {
				"triggers": {
					"on_damage": {
						"filters": {
							"test": "is_family",
							"subject": "other",
							"value": "hazmatguard"
						}
					},
					"deals_damage": false
				}
			},
			"minecraft:tameable": {
				"probability": 1,
				"tame_items": "diamond",
				"tame_event": {
					"event": "tamed",
					"target": "self"
				}
			},
			"minecraft:behavior.owner_hurt_by_target": {
          "priority": 1
        },
        "minecraft:behavior.owner_hurt_target": {
          "priority": 2
        },
			"minecraft:behavior.follow_owner": {
				"priority": 0,
				"speed_multiplier": 1.2,
				"start_distance": 12,
				"stop_distance": 4
			},
			"minecraft:behavior.panic": {
				"priority": 0,
				"speed_multiplier": 1.4
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.8
			},
			"minecraft:movement": {
				"value": 0.28
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": true,
				"can_pass_doors": true,
				"can_open_doors": true,
				"avoid_water": true
			},
			"minecraft:annotation.open_door": {},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 26,
				"max": 26
			},
			"minecraft:follow_range": {
				"value": 48,
				"max": 48
			},
			"minecraft:nameable": {},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1,
				"entity_types": {
					"filters": {
						"test": "is_family",
						"subject": "other",
						"operator": "!=",
						"value": "hazmatguard"
					},
					"max_dist": 48
				}
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"entity_types": [{
					"filters": {
						"test": "is_family",
						"subject": "other",
						"value": "monster"
					},
					"max_dist": 48
				}],
				"must_see": true
			},
			"minecraft:shooter": {
				"type": "smallfireball",
				"def": "addon:57bullet"
			},
			"minecraft:behavior.ranged_attack": {
				"priority": 0,
				"attack_interval_min": 2.2,
				"attack_interval_max": 2.4,
				"burst_shots": 50,
				"burst_interval": 0.1,
				"speed_multiplier": 0.8,
				"attack_radius": 22
			},
			"minecraft:behavior.random_stroll": {
				"priority": 4,
				"speed_multiplier": 0.8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 5
			},
			"minecraft:type_family": {
				"family": ["player", "hazmatguard"]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"randomize": [{
					"weight": 1,
					"remove": {},
					"add": {
						"component_groups": ["test"]
					}
				}]
			},
			"tamed": {
				"remove": {
					"component_groups": ["test"]
				},
				"add": {
					"component_groups": ["tamed"]
				}
			}
		}
	}
}