//bridge-file-version: #12
{
	"format_version": "1.17.0",
	"minecraft:entity": {
		"description": {
			"identifier": "nether:warped_stag",
			"is_summonable": true,
			"is_spawnable": true
		},
		"component_groups": {
			"minecraft:cow_baby": {
				"minecraft:is_baby": {},
				"minecraft:scale": {
					"value": 0.5
				},
				"minecraft:ageable": {
					"duration": 1200,
					"feed_items": [
						{
							"item": "minecraft:warped_fungus"
						}
					],
					"grow_up": {
						"event": "minecraft:ageable_grow_up",
						"target": "self"
					}
				},
				"minecraft:behavior.follow_parent": {
					"priority": 6,
					"speed_multiplier": 1.1
				}
			},
			"minecraft:cow_adult": {
				"minecraft:experience_reward": {
					"on_bred": "Math.Random(1,7)",
					"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
				},
				"minecraft:behavior.breed": {
					"priority": 3,
					"speed_multiplier": 1
				},
				"minecraft:breedable": {
					"require_tame": false,
					"breeds_with": {
						"mate_type": "nether:warped_stag",
						"baby_type": "nether:warped_stag",
						"breed_event": {
							"event": "minecraft:entity_born"
						}
					},
					"breed_items": [
						"minecraft:warped_fungus"
					]
				}
			},
			"saddled": {
				"minecraft:is_saddled": {},
				"minecraft:input_ground_controlled": {}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"mob"
				]
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:physics": {},
			"minecraft:movement.basic": {},
			"minecraft:loot": {},
			"minecraft:health": {
				"value": 30,
				"max": 30
			},
			"minecraft:collision_box": {
				"width": 1,
				"height": 1
			},
			"minecraft:movement": {
				"value": 0.2
			},
			"minecraft:navigation.walk": {},
			"minecraft:behavior.random_look_around": {
				"priority": 7
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:breedable": {
				"require_tame": false,
				"breeds_with": {
					"mate_type": "nether:warped_stag",
					"baby_type": "nether:warped_stag",
					"breed_event": {
						"event": "minecraft:entity_born"
					}
				},
				"breed_items": [
					"minecraft:warped_fungus"
				]
			},
			"minecraft:behavior.breed": {
				"priority": 3,
				"speed_multiplier": 1
			},
			"minecraft:behavior.tempt": {
				"priority": 4,
				"speed_multiplier": 1.25,
				"items": [
					"minecraft:warped_fungus"
				]
			},
			"minecraft:equippable": {
				"slots": [
					{
						"slot": 0,
						"item": "minecraft:saddle",
						"accepted_items": [
							"minecraft:saddle"
						],
						"on_equip": {
							"event": "saddled"
						}
					}
				]
			},
			"minecraft:rideable": {
				"seat_count": 1,
				"crouching_skip_interact": true,
				"family_types": [
					"player"
				],
				"interact_text": "action.interact.ride.warped_stag",
				"seats": {
					"position": [
						0,
						1.1,
						-0.5
					]
				}
			},
			"minecraft:inventory": {
				"inventory_size": 2,
				"container_type": "horse"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"randomize": [
					{
						"weight": 95,
						"trigger": "minecraft:spawn_adult"
					},
					{
						"weight": 5,
						"add": {
							"component_groups": [
								"minecraft:cow_baby"
							]
						}
					}
				]
			},
			"minecraft:entity_born": {
				"add": {
					"component_groups": [
						"minecraft:cow_baby"
					]
				}
			},
			"minecraft:entity_transformed": {
				"remove": {},
				"add": {
					"component_groups": [
						"minecraft:cow_adult"
					]
				}
			},
			"minecraft:ageable_grow_up": {
				"remove": {
					"component_groups": [
						"minecraft:cow_baby"
					]
				},
				"add": {
					"component_groups": [
						"minecraft:cow_adult"
					]
				}
			},
			"minecraft:spawn_adult": {
				"add": {
					"component_groups": [
						"minecraft:cow_adult"
					]
				}
			},
			"saddled": {
				"add": {
					"component_groups": [
						"saddled"
					]
				}
			}
		}
	}
}