{
	"format_version": "1.20.80",
	"minecraft:entity": {
		"description": {
			"identifier": "v360:moobloom",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false
		},
		"component_groups": {
			"minecraft:cow_baby": {
				"minecraft:is_baby": {},
				"minecraft:scale": {
					"value": 0.5
				},
				"minecraft:ageable": {
					"duration": 1200,
					"feed_items": "yellow_flower",
					"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:loot": {
					"table": "loot_tables/entities/moobloom.json"
				},
				"minecraft:behavior.breed": {
					"priority": 3,
					"speed_multiplier": 1
				},
				"minecraft:breedable": {
					"require_tame": false,
					"breeds_with": {
						"mate_type": "v360:moobloom",
						"baby_type": "v360:moobloom",
						"breed_event": {
							"target": "baby",
							"event": "minecraft:entity_born"
						}
					},
					"breed_items": [
						"minecraft:yellow_flower"
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:bone_meal"
										},
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										}
									]
								},
								"event": "flower"
							},
							"particle_on_start": {
								"particle_type": "endrod"
							},
							"play_sounds": "block.composter.fill",
							"use_item": true
						},
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "red_flower"
										},
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_biome_tag",
											"operator": "==",
											"value": "meadow"
										}
									]
								},
								"target": "self",
								"event": "summon_red"
							},
							"use_item": true,
							"play_sounds": "eat"
						}
					]
				}
			},
			"yellow_moobloom": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"red_moobloom": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:experience_reward": {
					"on_bred": "math.random(1,7)",
					"on_death": "query.last_hit_by_player?math.random(1,3):0"
				},
				"minecraft:loot": {
					"table": "loot_tables/entities/red_moobloom.json"
				},
				"minecraft:behavior.breed": {
					"priority": 3,
					"speed_multiplier": 1
				},
				"minecraft:breedable": {
					"require_tame": false,
					"breeds_with": {
						"mate_type": "v360:moobloom",
						"baby_type": "v360:moobloom",
						"breed_event": {
							"target": "baby",
							"event": "born_red"
						}
					},
					"breed_items": [
						"minecraft:yellow_flower"
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:bone_meal"
										},
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										}
									]
								},
								"event": "red_flower"
							},
							"particle_on_start": {
								"particle_type": "endrod"
							},
							"play_sounds": "block.composter.fill"
						}
					]
				}
			},
			"red_baby": {
				"minecraft:is_baby": {},
				"minecraft:scale": {
					"value": 0.5
				},
				"minecraft:ageable": {
					"duration": 1200,
					"feed_items": "yellow_flower",
					"grow_up": {
						"event": "grow_up_red",
						"target": "self"
					}
				},
				"minecraft:behavior.follow_parent": {
					"priority": 6,
					"speed_multiplier": 1.1
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"cow",
					"mob"
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": true,
				"avoid_water": true,
				"avoid_damage_blocks": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:collision_box": {
				"width": 0.9,
				"height": 1.3
			},
			"minecraft:nameable": {},
			"minecraft:health": {
				"value": 10,
				"max": 10
			},
			"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.25
			},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.panic": {
				"priority": 1,
				"speed_multiplier": 1.25
			},
			"minecraft:behavior.mount_pathing": {
				"priority": 2,
				"speed_multiplier": 1.5,
				"target_dist": 0,
				"track_target": true
			},
			"minecraft:behavior.breed": {
				"priority": 3,
				"speed_multiplier": 1
			},
			"minecraft:behavior.tempt": {
				"priority": 4,
				"speed_multiplier": 1.25,
				"items": [
					"minecraft:yellow_flower"
				]
			},
			"minecraft:behavior.follow_parent": {
				"priority": 5,
				"speed_multiplier": 1.1
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 0.8
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:balloonable": {},
			"minecraft:rideable": {
				"seat_count": 1,
				"family_types": [
					"zombie"
				],
				"seats": {
					"position": [
						0,
						1.105,
						0
					]
				}
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {}
		},
		"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"
					]
				}
			},
			"summon_red": {
				"add": {
					"component_groups": [
						"red_moobloom"
					]
				}
			},
			"grow_up_red": {
				"remove": {
					"component_groups": [
						"red_baby"
					]
				},
				"add": {
					"component_groups": [
						"red_moobloom"
					]
				}
			},
			"born_red": {
				"add": {
					"component_groups": [
						"red_baby"
					]
				}
			},
			"red_flower": {
				"randomize": [
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ double_plant [\"double_plant_type\" = \"sunflower\"] replace air"
							]
						},
						"weight": 25
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ double_plant [\"double_plant_type\" = \"rose\"] replace air"
							]
						},
						"weight": 25
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ double_plant [\"double_plant_type\" = \"paeonia\"] replace air"
							]
						},
						"weight": 25
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ double_plant [\"double_plant_type\" = \"syringa\"] replace air"
							]
						},
						"weight": 25
					}
				]
			},
			"flower": {
				"randomize": [
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"poppy\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"poppy\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"cornflower\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"orchid\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"allium\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"houstonia\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"tulip_red\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"tulip_orange\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"tulip_white\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"tulip_pink\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"oxeye\"] replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ yellow_flower replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ v360:rose replace air"
							]
						},
						"weight": 1
					},
					{
						"queue_command": {
							"command": [
								"fill ~~~ ~~~ red_flower [\"flower_type\" = \"lily_of_the_valley\"] replace air"
							]
						},
						"weight": 1
					}
				]
			}
		}
	}
}