{
	"format_version" : "1.16.0",
	"minecraft:entity" : {
		"description" : {
			"identifier" : "minecraft:guardian",
			"is_spawnable" : true,
			"is_summonable" : true,
			"is_experimental" : false
		},
		"component_groups" : {
			"minecraft:guardian_aggressive" : {
				"minecraft:behavior.nearest_attackable_target" : {
					"priority" : 1,
					"entity_types" : [
						{
							"filters" : {
								"any_of" : [
									{
										"test" : "is_family",
										"subject" : "other",
										"value" : "player"
									},
									{
										"test" : "is_family",
										"subject" : "other",
										"value" : "squid"
									},
									{
										"test" : "is_family",
										"subject" : "other",
										"value" : "axolotl"
									}
								]
							},
							"max_dist" : 16
						}
					],
					"attack_interval_min" : 1.0,
					"must_see" : true
				},
				"minecraft:target_nearby_sensor" : {
					"inside_range" : 3.0,
					"outside_range" : 4.0,
					"on_inside_range" : {
						"event" : "minecraft:target_too_close",
						"target" : "self"
					}
				},
				"minecraft:behavior.guardian_attack" : {
					"priority" : 4
				}
			},
			"minecraft:guardian_passive" : {
				"minecraft:timer" : {
					"time" : [ 1, 3 ],
					"looping" : false,
					"time_down_event" : {
						"event" : "minecraft:target_far_enough",
						"target" : "self"
					}
				},
				"minecraft:behavior.avoid_mob_type" : {
					"priority" : 1,
					"entity_types" : [
						{
							"filters" : {
								"test" : "is_family",
								"subject" : "other",
								"value" : "player"
							},
							"max_dist" : 8,
							"walk_speed_multiplier" : 1,
							"sprint_speed_multiplier" : 1
						}
					]
				}
			},
			"rare_guardian" : {
				"minecraft:health" : {
					"value" : 45,
					"max" : 45
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/rare_guardian.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "40"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "conduit_power",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.32
				},
				"minecraft:attack" : {
					"damage" : 8
				}
			},
			"rare_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Armoured Guardian The Defender"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"rare_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Unseen Guardian Of Stalking"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "invisibility",
							"duration" : 999999,
							"visible" : false
						},
						{
							"effect" : "conduit_power",
							"duration" : 999999,
							"visible" : true
						}
					]
				}
			},
			"rare_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Sprinting Guardian Of Bolting"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"ultra_guardian" : {
				"minecraft:health" : {
					"value" : 60,
					"max" : 60
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/ultra_guardian.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "60"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "haste",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.52
				},
				"minecraft:attack" : {
					"damage" : 11
				}
			},
			"ultra_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Defensive Guardian Of Turtling"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 2,
							"visible" : false
						}
					]
				}
			},
			"ultra_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Stalking Guardian The Unseen"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "invisibility",
							"duration" : 999999,
							"visible" : false
						},
						{
							"effect" : "haste",
							"duration" : 999999,
							"visible" : true
						}
					]
				}
			},
			"ultra_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Charging Guardian The Swift One"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 2,
							"visible" : false
						}
					]
				}
			},
			"infernal_guardian" : {
				"minecraft:health" : {
					"value" : 75,
					"max" : 75
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/infernal_guardian.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "80"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "saturation",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.72
				},
				"minecraft:attack" : {
					"damage" : 14
				}
			},
			"infernal_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Turtling Guardian Of Effing Armor"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 3,
							"visible" : false
						}
					]
				}
			},
			"infernal_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Hunting Guardian The Predator"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "invisibility",
							"duration" : 999999,
							"visible" : false
						},
						{
							"effect" : "saturation",
							"duration" : 999999,
							"visible" : true
						}
					]
				}
			},
			"infernal_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Swift Guardian Of Being In Your Face"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 3,
							"visible" : false
						}
					]
				}
			}
		},
		"components" : {
			"minecraft:is_hidden_when_invisible" : {},
			"minecraft:experience_reward" : {
				"on_death" : "query.last_hit_by_player ? 10 : 0"
			},
			"minecraft:nameable" : {},
			"minecraft:collision_box" : {
				"width" : 0.85,
				"height" : 0.85
			},
			"minecraft:health" : {
				"value" : 30,
				"max" : 30
			},
			"minecraft:hurt_on_condition" : {
				"damage_conditions" : [
					{
						"filters" : {
							"test" : "in_lava",
							"subject" : "self",
							"operator" : "==",
							"value" : true
						},
						"cause" : "lava",
						"damage_per_tick" : 4
					}
				]
			},
			"minecraft:movement" : {
				"value" : 0.12
			},
			"minecraft:underwater_movement" : {
				"value" : 0.12
			},
			"minecraft:attack" : {
				"damage" : 5
			},
			"minecraft:follow_range" : {
				"value" : 16,
				"max" : 16
			},
			"minecraft:navigation.generic" : {
				"is_amphibious" : true,
				"can_path_over_water" : false,
				"can_swim" : true,
				"can_walk" : false,
				"can_breach" : true
			},
			"minecraft:movement.sway" : {},
			"minecraft:jump.static" : {},
			"minecraft:breathable" : {
				"breathes_water" : true
			},
			"minecraft:loot" : {
				"table" : "loot_tables/entities/guardian.json"
			},
			"minecraft:despawn" : {
				"despawn_from_distance" : {}
			},
			"minecraft:home" : {
				"restriction_radius" : 16
			},
			"minecraft:behavior.nearest_attackable_target" : {
				"priority" : 1,
				"entity_types" : [
					{
						"filters" : {
							"any_of" : [
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "player"
								},
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "squid"
								},
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "axolotl"
								}
							]
						},
						"max_dist" : 16
					}
				],
				"attack_interval_min" : 1.0,
				"must_see" : true
			},
			"minecraft:target_nearby_sensor" : {
				"inside_range" : 3.0,
				"outside_range" : 4.0,
				"on_inside_range" : {
					"event" : "minecraft:target_too_close",
					"target" : "self"
				}
			},
			"minecraft:behavior.guardian_attack" : {
				"priority" : 4
			},
			"minecraft:behavior.move_towards_home_restriction" : {
				"priority" : 5,
				"speed_multiplier" : 1.0
			},
			"minecraft:behavior.random_swim" : {
				"priority" : 7,
				"speed_multiplier" : 1.0,
				"interval" : 80,
				"avoid_surface" : false
			},
			"minecraft:behavior.look_at_player" : {
				"priority" : 8,
				"look_distance" : 12.0,
				"probability" : 0.01
			},
			"minecraft:behavior.random_look_around" : {
				"priority" : 9
			},
			"minecraft:type_family" : {
				"family" : [ "guardian", "monster", "mob" ]
			},
			"minecraft:physics" : {},
			"minecraft:pushable" : {
				"is_pushable" : true,
				"is_pushable_by_piston" : true
			},
			"minecraft:conditional_bandwidth_optimization" : {}
		},
		"events" : {
			"minecraft:entity_spawned" : {
				"randomize" : [
					{
						"weight" : 9500,
						"remove" : {},
						"add" : {}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_guardian", "rare_bullwark" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_guardian", "rare_cloaking" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_guardian", "rare_sprint" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_guardian", "ultra_bullwark" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_guardian", "ultra_cloaking" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_guardian", "ultra_sprint" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_guardian", "infernal_bullwark" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_guardian", "infernal_cloaking" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_guardian", "infernal_sprint" ]
						}
					}
				]
			},
			"minecraft:target_too_close" : {
				"remove" : {
					"component_groups" : [ "minecraft:guardian_aggressive" ]
				},
				"add" : {
					"component_groups" : [ "minecraft:guardian_passive" ]
				}
			},
			"minecraft:target_far_enough" : {
				"remove" : {
					"component_groups" : [ "minecraft:guardian_passive" ]
				},
				"add" : {
					"component_groups" : [ "minecraft:guardian_aggressive" ]
				}
			}
		}
	}
}
