{
	"format_version": "1.13.0",
	"minecraft:entity": {
		"description": {
			"is_spawnable": true,
			"is_summonable": true,
			"identifier": "dotvi:brawneus",
			"is_experimental": false
		},
		"component_groups": {
			"dotvi:not_calm_but_not_raging": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:damage_sensor": {},
				"minecraft:movement": {
					"value": 0.2
				}
			},
			"dotvi:enraged": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "all",
							"deals_damage": false
						}
					]
				},
				"minecraft:timer": {
					"looping": false,
					"time": 10,
					"time_down_event": {
						"event": "dotvi:enrage_cancel",
						"target": "self"
					}
				},
				"minecraft:movement": {
					"value": 0.3
				}
			},
			"dotvi:stun": {
				"minecraft:is_stunned": {}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"piglin",
					"disciple",
					"monster",
					"newdisciple",
					"heretic",
					"disciplevoli"
				]
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.9
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_pass_doors": true,
				"can_walk": true,
				"can_break_doors": true
			},
			"minecraft:annotation.break_door": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 400
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0,
				"breathes_air": true,
				"breathes_water": true
			},
			"minecraft:attack": {
				"damage": 16
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/brawneus.json"
			},
			"minecraft:behavior.move_towards_restriction": {
				"priority": 5,
				"speed_multiplier": 1
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 7
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"reselect_targets": true,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "undead"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
						"max_dist": 10
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "puppet"
								}
							]
						},
						"max_dist": 20
					}
				],
				"must_see": true,
				"must_see_forget_duration": 17
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:knockback_resistance": {
				"value": 50
			},
			"minecraft:boss": {
				"hud_range": 10,
				"name": "Brawneus, Heretic of Rot"
			},
			"minecraft:on_hurt_by_player": {
				"target": "self",
				"event": "dotvi:enrage_trigger"
			},
			"minecraft:movement": {
				"value": 0.2
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3,
				"attack_once": false,
				"max_dist": 10,
				"target_dist": 10,
				"track_target": true,
				"speed_multiplier": 1.2,
				"reach_multiplier": 1.2,
				"random_stop_interval": 0
			},
			"minecraft:on_death": {
				"target": "self",
				"event": "dotvi:on_death"
			}
		},
		"events": {
			"dotvi:enrage_trigger": {
				"randomize": [
					{
						"weight": 1,
						"sequence": [
							{
								"filters": {
									"all_of": [
										{
											"test": "is_variant",
											"value": 0,
											"operator": "equals",
											"subject": "self"
										}
									]
								},
								"remove": {
									"component_groups": [
										"dotvi:not_calm_but_not_raging"
									]
								},
								"add": {
									"component_groups": [
										"dotvi:enraged"
									]
								},
								"run_command": {
									"command": [
										"playanimation @s animation.brawneus.roar",
										"playsound mob.brawneus.idle @a[r=15]",
										"effect @s slowness 2 50 true"
									]
								}
							}
						]
					},
					{
						"weight": 50
					}
				]
			},
			"dotvi:enrage_cancel": {
				"add": {
					"component_groups": [
						"dotvi:not_calm_but_not_raging"
					]
				},
				"remove": {
					"component_groups": [
						"dotvi:enraged"
					]
				}
			},
			"dotvi:cancel_stun": {},
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"dotvi:not_calm_but_not_raging"
					]
				}
			},
			"dotvi:on_death": {
				"run_command": {
					"command": [
						"function defeattriggers/heriticslain"
					],
					"target": "self"
				}
			}
		}
	}
}