{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_529",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"sleeping": {
				"minecraft:behavior.sleep": {
					"priority": 0,
					"goal_radius": 1.5,
					"speed_multiplier": 0.7,
					"sleep_collider_height": 0.3,
					"sleep_collider_width": 0.6,
					"sleep_y_offset": 0.6,
					"timeout_cooldown": 10
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": {
								"test": "is_daytime",
								"value": false
							},
							"event": "wake_up"
						}
					]
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"on_damage": {
								"event": "woken_up"
							}
						}
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "scpcat"
										}
									]
								},
								"event": "woken_up"
							}
						}
					]
				},
				"minecraft:timer": {
					"time": 300,
					"time_down_event": {
						"event": "wake_up"
					}
				}
			},
			"sleep_timer": {
				"minecraft:timer": {
					"time": 15,
					"time_down_event": {
						"event": "sleep_again"
					}
				}
			},
			"scp529one": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"scp529two": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"becomefriendly": {
				"minecraft:behavior.hurt_by_target": {
					"entity_types": [
						{
							"filters": {
								"other_with_families": [
									"player",
									"zoglin",
									"hoglin",
									"piglin",
									"strider",
									"zombie",
									"creeper",
									"skeleton",
									"spider",
									"zombie_pigman",
									"slime",
									"enderman",
									"silverfish",
									"cave_spider",
									"ghast",
									"magma_cube",
									"blaze",
									"zombie_villager",
									"witch",
									"stray",
									"husk",
									"wither_skeleton",
									"guardian",
									"elder_guardian",
									"wither",
									"ender_dragon",
									"shulker",
									"endermite",
									"vindicator",
									"phantom",
									"ravager",
									"evocation_illager",
									"vex",
									"drowned",
									"pillager",
									"zombie_villager_v2",
									"chicken",
									"cow",
									"pig",
									"sheep",
									"wolf",
									"villager",
									"mooshroom",
									"squid",
									"rabbit",
									"bat",
									"iron_golem",
									"snow_golem",
									"ocelot",
									"horse",
									"donkey",
									"mule",
									"skeleton_horse",
									"zombie_horse",
									"polar_bear",
									"llama",
									"parrot",
									"dolphin",
									"turtle",
									"cat",
									"pufferfish",
									"salmon",
									"tropicalfish",
									"cod",
									"panda",
									"villager_v2",
									"wandering_trader",
									"fox",
									"bee",
									"recontainhuman",
									"goat",
									"axolotl",
									"glow_squid",
									"mtfepsilon11"
								]
							},
							"max_dist": 35,
							"must_see": false
						}
					],
					"priority": 2,
					"hurt_owner": true
				},
				"minecraft:behavior.melee_attack": {
					"priority": 1,
					"speed_multiplier": 1.25,
					"on_attack": {
						"event": "becomehostile"
					},
					"attack_once": true
				}
			},
			"becomehostile": {
				"minecraft:timer": {
					"looping": false,
					"time": 0,
					"time_down_event": {
						"event": "becomefriendly"
					}
				}
			}
		},
		"components": {
			"minecraft:attack_damage": {
				"value": 4
			},
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"friendlyscp"
				]
			},
			"minecraft:healable": {
				"items": [
					{
						"item": "scpcf:cheese",
						"heal_amount": 5
					},
					{
						"item": "scpcf:cheese_flakes",
						"heal_amount": 12
					}
				]
			},
			"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.3
			},
			"minecraft:navigation.walk": {
				"can_float": true,
				"avoid_water": true,
				"avoid_damage_blocks": true,
				"is_amphibious": false,
				"avoid_portals": false,
				"avoid_sun": false,
				"can_break_doors": false,
				"can_open_doors": false,
				"can_pass_doors": true,
				"can_open_iron_doors": false,
				"can_path_over_water": true,
				"can_path_over_lava": false,
				"can_path_from_air": false,
				"can_sink": false,
				"can_walk_in_lava": false,
				"can_walk": true,
				"can_swim": true,
				"can_jump": true,
				"can_breach": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:damage_sensor": {
				"triggers": {
					"cause": "fall",
					"deals_damage": false
				}
			},
			"minecraft:dweller": {
				"dwelling_type": "village",
				"dweller_role": "inhabitant",
				"can_find_poi": true,
				"update_interval_base": 60,
				"update_interval_variant": 40,
				"can_migrate": true,
				"first_founding_reward": 5
			},
			"minecraft:behavior.float": {
				"priority": 2
			},
			"minecraft:behavior.mount_pathing": {
				"priority": 1,
				"speed_multiplier": 1.25,
				"target_dist": 0,
				"track_target": true
			},
			"minecraft:behavior.leap_at_target": {
				"priority": 3,
				"target_dist": 0.3
			},
			"minecraft:behavior.ocelotattack": {
				"priority": 4,
				"walk_speed_multiplier": 0.8,
				"sprint_speed_multiplier": 1.33,
				"sneak_speed_multiplier": 0.6
			},
			"minecraft:behavior.random_stroll": {
				"priority": 8,
				"speed_multiplier": 0.5
			},
			"minecraft:behavior.look_at_player": {
				"priority": 9
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:behavior.lay_down": {
				"priority": 4,
				"interval": 500,
				"random_stop_interval": 80
			},
			"minecraft:tameable": {
				"probability": 1,
				"tame_items": [
					"scpcf:cheese",
					"scpcf:cheese_flakes"
				]
			},
			"minecraft:behavior.tempt": {
				"priority": 5,
				"speed_multiplier": 0.7,
				"items": [
					"scpcf:cheese",
					"scpcf:cheese_flakes"
				],
				"within_radius": 70
			},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": {
							"test": "is_daytime",
							"value": true
						},
						"event": "sleep"
					}
				]
			},
			"minecraft:health": {
				"value": 15,
				"max": 15
			},
			"minecraft:attack": {
				"damage": 1
			},
			"minecraft:behavior.eat_carried_item": {
				"priority": 4,
				"delay_before_eating": 10
			},
			"minecraft:shareables": {
				"items": [
					{
						"item": "scpcf:cheese_flakes",
						"max_amount": 1,
						"priority": 2
					},
					{
						"item": "scpcf:cheese",
						"max_amount": 1,
						"priority": 2
					}
				]
			},
			"minecraft:behavior.pickup_items": {
				"priority": 1,
				"max_dist": 3,
				"goal_radius": 2,
				"speed_multiplier": 1,
				"pickup_based_on_chance": true,
				"can_pickup_any_item": false
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:behavior.equip_item": {
				"priority": 2
			},
			"minecraft:equip_item": {},
			"minecraft:scale": {
				"value": 0.8
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 0.6
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/cat.json"
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?3:0"
			},
			"minecraft:breathable": {
				"totalSupply": 10,
				"suffocateTime": 0
			}
		},
		"events": {
			"sleep": {
				"add": {
					"component_groups": [
						"sleeping"
					]
				}
			},
			"wake_up": {
				"remove": {
					"component_groups": [
						"sleeping"
					]
				},
				"add": {
					"component_groups": [
						"sleep_timer"
					]
				}
			},
			"woken_up": {
				"remove": {
					"component_groups": [
						"sleeping"
					]
				},
				"add": {
					"component_groups": [
						"sleep_timer"
					]
				}
			},
			"sleep_again": {
				"add": {
					"component_groups": [
						"sleeping"
					]
				},
				"remove": {
					"component_groups": [
						"sleep_timer"
					]
				}
			},
			"minecraft:entity_spawned": {
				"randomize": [
					{
						"weight": 9,
						"add": {
							"component_groups": [
								"scp529one",
								"becomefriendly"
							]
						}
					},
					{
						"weight": 8,
						"add": {
							"component_groups": [
								"scp529two",
								"becomefriendly"
							]
						}
					}
				]
			},
			"becomefriendly": {
				"add": {
					"component_groups": [
						"becomefriendly"
					]
				},
				"remove": {
					"component_groups": [
						"becomehostile"
					]
				}
			},
			"becomehostile": {
				"add": {
					"component_groups": [
						"becomehostile"
					]
				},
				"remove": {
					"component_groups": [
						"becomehostile"
					]
				}
			}
		}
	}
}