{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_1325",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false
		},
		"component_groups": {
			"chocolateegg": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:loot": {
					"table": "loot_tables/scp1325loot.json"
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "has_equipment",
										"domain": "hand",
										"subject": "other",
										"value": "minecraft:shears"
									}
								],
								"event": "spawnegg"
							},
							"interact_text": "Take Off Chocolate Egg",
							"play_sounds": "shear",
							"hurt_item": 1,
							"use_item": false,
							"swing": true
						}
					]
				},
				"minecraft:timer": {
					"looping": true,
					"time": 300,
					"time_down_event": {
						"event": "spawnegg"
					}
				}
			},
			"nochocolateegg": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:timer": {
					"looping": true,
					"time": 300,
					"time_down_event": {
						"event": "chocolateegg"
					}
				}
			},
			"spawnegg": {
				"minecraft:timer": {
					"looping": false,
					"time": 0,
					"time_down_event": {
						"event": "removespawnegg"
					}
				},
				"minecraft:spawn_entity": {
					"entities": [
						{
							"spawn_item": "scpcf:scp_1325_chocolate_egg",
							"min_wait_time": 0,
							"max_wait_time": 0
						}
					]
				}
			}
		},
		"components": {
			"minecraft:behavior.random_stroll": {
				"priority": 5,
				"speed_multiplier": 0.5
			},
			"minecraft:health": {
				"value": 20,
				"max": 20
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 30
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8,
				"look_time": [
					2,
					3
				]
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "fall",
						"deals_damage": false
					}
				]
			},
			"minecraft:type_family": {
				"family": [
					"friendlyscp"
				]
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:behavior.move_to_water": {
				"priority": 6,
				"search_range": 20,
				"search_height": 5,
				"goal_radius": 1.5,
				"speed_multiplier": 0.8
			},
			"minecraft:movement.amphibious": {},
			"minecraft:movement": {
				"value": 0.3
			},
			"minecraft:underwater_movement": {
				"value": 0.3
			},
			"minecraft:behavior.move_to_land": {
				"priority": 6,
				"search_range": 30,
				"search_height": 8,
				"search_count": 80,
				"goal_radius": 2,
				"speed_multiplier": 0.8
			},
			"minecraft:collision_box": {
				"height": 0.6,
				"width": 0.5
			},
			"minecraft:nameable": {},
			"minecraft:behavior.mount_pathing": {
				"priority": 5,
				"speed_multiplier": 1.25,
				"target_dist": 0,
				"track_target": true
			},
			"minecraft:navigation.climb": {
				"can_path_over_water": true
			},
			"minecraft:behavior.float": {
				"priority": 1
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?6:0"
			},
			"minecraft:behavior.croak": {
				"priority": 9,
				"interval": [
					10,
					20
				],
				"duration": 4.5,
				"filters": {
					"all_of": [
						{
							"test": "in_water",
							"value": false
						},
						{
							"test": "in_lava",
							"value": false
						}
					]
				}
			},
			"minecraft:behavior.panic": {
				"priority": 1,
				"speed_multiplier": 0.8
			},
			"minecraft:behavior.jump_to_block": {
				"priority": 10,
				"search_width": 8,
				"search_height": 4,
				"minimum_path_length": 2,
				"minimum_distance": 1,
				"scale_factor": 0.6,
				"max_velocity": 1,
				"cooldown_range": [
					5,
					7
				],
				"preferred_blocks": [
					"minecraft:waterlily",
					"minecraft:big_dripleaf"
				],
				"preferred_blocks_chance": 0.5,
				"forbidden_blocks": [
					"minecraft:water"
				]
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"chocolateegg"
					]
				},
				"remove": {
					"component_groups": [
						"nochocolateegg"
					]
				}
			},
			"nochocolateegg": {
				"add": {
					"component_groups": [
						"nochocolateegg"
					]
				},
				"remove": {
					"component_groups": [
						"chocolateegg"
					]
				}
			},
			"chocolateegg": {
				"add": {
					"component_groups": [
						"chocolateegg"
					]
				},
				"remove": {
					"component_groups": [
						"nochocolateegg",
						"spawnegg"
					]
				},
				"queue_command": {
					"command": [
						"playsound mob.chicken.plop @a[r=15]"
					]
				}
			},
			"removespawnegg": {
				"remove": {
					"component_groups": [
						"spawnegg",
						"chocolateegg"
					]
				},
				"add": {
					"component_groups": [
						"nochocolateegg"
					]
				}
			},
			"spawnegg": {
				"add": {
					"component_groups": [
						"spawnegg"
					]
				},
				"remove": {
					"component_groups": [
						"chocolateegg"
					]
				},
				"queue_command": {
					"command": [
						"playsound dig.cave_vines @a[r=15]"
					]
				}
			}
		}
	}
}