{
	"format_version": "1.19.50",
	"minecraft:entity": {
		"description": {
			"identifier": "dotvi:osseous",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"dotvi:roar_timer": {
				"minecraft:timer": {
					"looping": false,
					"time": 3,
					"time_down_event": {
						"event": "dotvi:roar_cancel"
					}
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "all",
							"deals_damage": false
						}
					]
				}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"osseous",
					"undead",
					"monster",
					"disciple",
					"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,
				"effect_name": "wither",
				"effect_duration": 5
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/osseous.json"
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3,
				"speed_multiplier": 1,
				"track_target": false
			},
			"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": "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:break_blocks": {
				"breakable_blocks": [
					"minecraft:grass",
					"minecraft:dirt",
					"minecraft:stone"
				]
			},
			"minecraft:knockback_resistance": {
				"value": 50
			},
			"minecraft:on_hurt_by_player": {
				"target": "self",
				"event": "dotvi:roar"
			},
			"minecraft:boss": {
				"hud_range": 20,
				"name": "Osseous, Heretic of Blood"
			},
			"minecraft:movement": {
				"value": 0.25
			},
			"minecraft:scale": {
				"value": 1.35
			},
			"minecraft:variant": {
				"value": 0
			},
			"minecraft:damage_sensor": {},
			"minecraft:behavior.avoid_mob_type": {
				"priority": 2,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "wolf"
								}
							]
						},
						"max_dist": 8
					}
				],
				"max_dist": 5,
				"max_flee": 7,
				"sprint_speed_multiplier": 1.3
			},
			"minecraft:on_death": {
				"target": "self",
				"event": "dotvi:on_death"
			}
		},
		"events": {
			"dotvi:on_hurt_by_player": {
				"randomize": [
					{
						"weight": 1,
						"trigger": "dotvi:call_for_backup"
					},
					{
						"weight": 20
					}
				]
			},
			"dotvi:call_for_backup": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"summon dotvi:bloodskeleton ~2~~"
							]
						}
					},
					{
						"run_command": {
							"command": [
								"summon dotvi:bloodskeleton ~-2~~"
							]
						}
					},
					{
						"run_command": {
							"command": [
								"summon dotvi:bloodskeleton ~~~-2"
							]
						}
					}
				]
			},
			"dotvi:roar": {
				"randomize": [
					{
						"weight": 1,
						"sequence": [
							{
								"run_command": {
									"command": [
										"playanimation @s animation.osseous.roar",
										"playsound mob.osseous.death @a[r=15]",
										"effect @s slowness 3 50 true",
										"kill @e[type=dotvi:bloodskeleton, r=15]",
										"camerashake add @a[r=15] 0.6 3 positional"
									]
								},
								"add": {
									"component_groups": [
										"dotvi:roar_timer"
									]
								}
							}
						]
					},
					{
						"weight": 30
					}
				]
			},
			"dotvi:roar_cancel": {
				"remove": {
					"component_groups": [
						"dotvi:roar_timer"
					]
				},
				"trigger": "dotvi:call_for_backup"
			},
			"dotvi:on_death": {
				"run_command": {
					"command": [
						"function defeattriggers/heriticslain"
					],
					"target": "self"
				}
			}
		}
	}
}