{
	"format_version": "1.13.0",
	"minecraft:entity": {
		"description": {
			"identifier": "dotvi:limbosis",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"dotvi:enrage": {
				"minecraft:timer": {
					"looping": false,
					"time": 10,
					"time_down_event": {
						"event": "dotvi:enrage_cancel",
						"target": "self"
					}
				},
				"minecraft:movement": {
					"value": 0.3
				},
				"minecraft:attack": {
					"damage": 10,
					"effect_name": "weakness",
					"effect_duration": 5
				},
				"minecraft:teleport": {
					"random_teleports": true,
					"max_random_teleport_time": 2,
					"min_random_teleport_time": 1,
					"random_teleport_cube": [
						5,
						5,
						5
					],
					"target_distance": 9,
					"target_teleport_chance": 0.05,
					"light_teleport_chance": 0.05
				}
			},
			"dotvi:normal_variant": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:attack": {
					"damage": 6
				}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"limbosis",
					"enderman",
					"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
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/limbosis.json"
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3,
				"speed_multiplier": 1.2,
				"track_target": true
			},
			"minecraft:behavior.stomp_turtle_egg": {
				"priority": 4,
				"speed_multiplier": 1,
				"search_range": 10,
				"search_height": 3,
				"goal_radius": 1.14,
				"search_count": 4,
				"interval": 20
			},
			"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": "snowgolem"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "irongolem"
								}
							]
						},
						"max_dist": 35
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "villager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "wandering_trader"
								}
							]
						},
						"max_dist": 35,
						"must_see": false
					},
					{
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "baby_turtle"
								},
								{
									"test": "in_water",
									"subject": "other",
									"operator": "!=",
									"value": true
								}
							]
						},
						"max_dist": 35
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "puppet"
								}
							]
						},
						"max_dist": 20
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
						"max_dist": 35
					}
				],
				"must_see": true,
				"must_see_forget_duration": 17,
				"set_persistent": true
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:on_hurt_by_player": {
				"target": "self",
				"event": "dotvi:randomize_buff"
			},
			"minecraft:movement": {
				"value": 0.45
			},
			"minecraft:boss": {
				"hud_range": 10,
				"name": "Limbosis, Heretic of End"
			},
			"minecraft:knockback_resistance": {
				"max": 50
			},
			"minecraft:teleport": {
				"random_teleports": true,
				"max_random_teleport_time": 30,
				"random_teleport_cube": [
					12,
					2,
					12
				],
				"target_distance": 12,
				"target_teleport_chance": 0.05,
				"light_teleport_chance": 0.05
			},
			"minecraft:on_death": {
				"target": "self",
				"event": "dotvi:on_death"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"dotvi:normal_variant"
					]
				}
			},
			"dotvi:randomize_buff": {
				"randomize": [
					{
						"weight": 1,
						"sequence": [
							{
								"filters": {
									"all_of": [
										{
											"test": "is_variant",
											"subject": "self",
											"value": 0
										}
									]
								},
								"trigger": "dotvi:enrage"
							}
						]
					},
					{
						"weight": 35
					}
				]
			},
			"dotvi:enrage": {
				"add": {
					"component_groups": [
						"dotvi:enrage"
					]
				},
				"remove": {
					"component_groups": [
						"dotvi:normal_variant"
					]
				},
				"trigger": "dotvi:spawn_clones"
			},
			"dotvi:enrage_cancel": {
				"remove": {
					"component_groups": [
						"dotvi:enrage"
					]
				},
				"add": {
					"component_groups": [
						"dotvi:normal_variant"
					]
				}
			},
			"dotvi:spawn_clones": {
				"randomize": [
					{
						"weight": 1,
						"sequence": [
							{
								"run_command": {
									"command": [
										"summon dotvi:limbosis_clone ~2~~"
									]
								}
							},
							{
								"run_command": {
									"command": [
										"summon dotvi:limbosis_clone ~-2~~"
									]
								}
							},
							{
								"run_command": {
									"command": [
										"summon dotvi:limbosis_clone ~~~-2"
									]
								}
							}
						]
					}
				]
			},
			"dotvi:on_death": {
				"run_command": {
					"command": [
						"function defeattriggers/heriticslain"
					],
					"target": "self"
				}
			}
		}
	}
}