{
	"format_version": "1.20.80",
	"minecraft:entity": {
		"description": {
			"identifier": "v360:muppet",
			"is_summonable": true,
			"is_spawnable": true
		},
		"component_groups": {
			"muppet_happy": {
				"minecraft:behavior.croak": {
					"priority": 1,
					"duration": [
						0,
						1
					],
					"interval": [
						0,
						0
					]
				},
				"minecraft:timer": {
					"looping": false,
					"time_down_event": {
						"event": "replace_bedrock"
					},
					"time": [
						5,
						5
					]
				}
			},
			"muppet_baby": {
				"minecraft:is_baby": {},
				"minecraft:scale": {
					"value": 0.45
				},
				"minecraft:ageable": {
					"duration": 2400,
					"feed_items": [
						"v360:blue_bonnets_seeds"
					],
					"grow_up": {
						"event": "minecraft:ageable_grow_up",
						"target": "self"
					}
				}
			},
			"muppet_adult": {
				"minecraft:behavior.breed": {
					"priority": 3,
					"speed_multiplier": 1
				},
				"minecraft:experience_reward": {
					"on_bred": "math.random(1,7)",
					"on_death": "query.last_hit_by_player?math.random(1,3):0"
				},
				"minecraft:breedable": {
					"require_tame": false,
					"causes_pregnancy": true,
					"require_full_health": true,
					"breeds_with": [
						{
							"mate_type": "v360:muppet",
							"baby_type": "v360:muppet",
							"breed_event": {
								"event": "on_pregnant",
								"target": "self"
							}
						}
					],
					"breed_items": [
						"v360:blue_bonnets_seeds"
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"cooldown": 60,
							"on_interact": {
								"filters": {
									"any_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:red_mushroom"
										},
										{
											"test": "has_equipment",
											"subject": "other",
											"value": "minecraft:brown_mushroom",
											"domain": "hand"
										}
									]
								},
								"event": "mushroom"
							},
							"use_item": true,
							"vibration": "entity_interact"
						},
						{
							"cooldown": 600,
							"on_interact": {
								"filters": {
									"any_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:seagrass"
										}
									]
								},
								"event": "ocean"
							},
							"use_item": true,
							"vibration": "entity_interact"
						},
						{
							"cooldown": 600,
							"on_interact": {
								"filters": {
									"any_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:pumpkin_seeds"
										}
									]
								},
								"event": "cold"
							},
							"use_item": true,
							"vibration": "entity_interact"
						},
						{
							"cooldown": 600,
							"on_interact": {
								"filters": {
									"any_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:yellow_flower"
										}
									]
								},
								"event": "temperate"
							},
							"use_item": true,
							"vibration": "entity_interact"
						},
						{
							"cooldown": 600,
							"on_interact": {
								"filters": {
									"any_of": [
										{
											"test": "has_equipment",
											"subject": "other",
											"domain": "hand",
											"value": "minecraft:red_flower"
										}
									]
								},
								"event": "warm"
							},
							"use_item": true,
							"vibration": "entity_interact"
						}
					]
				},
				"minecraft:scale": {
					"value": 1
				}
			},
			"muppet_pregnant": {
				"minecraft:spawn_entity": {
					"entities": {
						"min_wait_time": 0,
						"max_wait_time": 0,
						"spawn_sound": "plop",
						"spawn_item": "v360:muppet_egg",
						"spawn_item_event": {
							"event": "on_egg_spawned",
							"target": "self"
						},
						"single_use": true
					}
				},
				"minecraft:is_pregnant": {}
			},
			"temperate": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"cold": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"warm": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"muppet_wild": {
				"minecraft:tameable": {
					"probability": 0.33,
					"tame_items": "v360:blue_bonnets_seeds",
					"tame_event": {
						"event": "tame"
					}
				}
			},
			"muppet_tame": {
				"minecraft:is_tamed": {},
				"minecraft:behavior.player_ride_tamed": {
					"priority": 0
				},
				"minecraft:behavior.follow_owner": {
					"priority": 1,
					"can_teleport": true,
					"max_distance": 128
				},
				"minecraft:rideable": {
					"seat_count": 1,
					"interact_text": "action.interact.mount",
					"family_types": [
						"player"
					],
					"seats": {
						"position": [
							0,
							1.17,
							-0.3
						]
					}
				},
				"minecraft:variable_max_auto_step": {
					"controlled_value": 1,
					"base_value": 1
				},
				"minecraft:input_ground_controlled": {},
				"minecraft:is_saddled": {},
				"minecraft:healable": {
					"force_use": false,
					"items": [
						{
							"item": "v360:blue_bonnets_seeds",
							"heal_amount": 1
						}
					]
				},
				"minecraft:health": {
					"value": 28
				},
				"minecraft:sittable": {}
			},
			"sniffy": {
				"minecraft:variant": {
					"value": 3
				}
			}
		},
		"components": {
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.panic": {
				"priority": 1,
				"speed_multiplier": 2
			},
			"minecraft:behavior.tempt": {
				"priority": 4,
				"speed_multiplier": 1.25,
				"items": [
					"minecraft:brown_mushroom",
					"minecraft:red_mushroom",
					"minecraft:yellow_flower",
					"minecraft:red_flower",
					"minecraft:seagrass",
					"minecraft:pumpkin_seeds",
					"v360:blue_bonnets_seeds"
				]
			},
			"minecraft:behavior.random_stroll": {
				"priority": 7,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8,
				"target_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:collision_box": {
				"width": 1.5,
				"height": 1.75
			},
			"minecraft:healable": {
				"items": [
					{
						"item": "torchflower_seeds",
						"heal_amount": 2
					}
				]
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:balloonable": {},
			"minecraft:type_family": {
				"family": [
					"muppet",
					"mob"
				]
			},
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:nameable": {
				"name_actions": [
					{
						"name_filter": "Sniffy",
						"on_named": {
							"event": "sniffy",
							"target": "self"
						}
					}
				]
			},
			"minecraft:health": {
				"value": 14
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": true,
				"avoid_water": true,
				"avoid_damage_blocks": true
			},
			"minecraft:movement.basic": {},
			"minecraft:follow_range": {
				"value": 64
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:movement": {
				"value": 0.07
			},
			"minecraft:physics": {},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:pushable": {
				"is_pushable": true
			},
			"minecraft:timer": {
				"looping": true,
				"time": [
					0,
					0
				],
				"time_down_event": {
					"event": "walk_on_water",
					"target": "self"
				}
			},
			"minecraft:variable_max_auto_step": {
				"base_value": 1.1,
				"controlled_value": 1.1,
				"jump_prevented_value": 0.1
			},
			"minecraft:behavior.stay_while_sitting": {}
		},
		"events": {
			"mushroom": {
				"add": {
					"component_groups": [
						"muppet_happy"
					]
				},
				"queue_command": {
					"command": [
						"structure load mystructure:mushroom_island ~ -64 ~"
					]
				}
			},
			"ocean": {
				"randomize": [
					{
						"queue_command": {
							"command": [
								"structure load mystructure:ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:cold_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:deep_cold_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:deep_frozen_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:deep_lukewarm_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:deep_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:frozen_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:lukewarm_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:warm_ocean ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					}
				]
			},
			"cold": {
				"randomize": [
					{
						"queue_command": {
							"command": [
								"structure load mystructure:cherry_grove ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:cold_beach ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:cold_taiga ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:frozen_peaks ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:grove ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:ice_plains ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:ice_plains_spikes ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:jagged_peaks ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:snowy_slopes ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:stony_peaks ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					}
				]
			},
			"temperate": {
				"randomize": [
					{
						"queue_command": {
							"command": [
								"structure load mystructure:birch_forest ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:forest ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:meadow ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:plains ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:roofed_forest ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:swamp ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:taiga ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					}
				]
			},
			"warm": {
				"randomize": [
					{
						"queue_command": {
							"command": [
								"structure load mystructure:bamboo_jungle ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:desert ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:jungle ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:mangrove_swamp ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:mesa ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					},
					{
						"queue_command": {
							"command": [
								"structure load mystructure:savanna ~ -64 ~"
							]
						},
						"weight": 10,
						"add": {
							"component_groups": [
								"muppet_happy"
							]
						}
					}
				]
			},
			"minecraft:ageable_grow_up": {
				"remove": {
					"component_groups": [
						"muppet_baby"
					]
				},
				"add": {
					"component_groups": [
						"muppet_adult"
					]
				}
			},
			"on_pregnant": {
				"add": {
					"component_groups": [
						"muppet_pregnant"
					]
				}
			},
			"on_egg_spawned": {
				"remove": {
					"component_groups": [
						"muppet_pregnant"
					]
				}
			},
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"temperate"
							]
						}
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "has_biome_tag",
									"value": "desert"
								},
								{
									"test": "has_biome_tag",
									"value": "jungle"
								},
								{
									"test": "has_biome_tag",
									"value": "savanna"
								},
								{
									"test": "has_biome_tag",
									"value": "mesa"
								},
								{
									"test": "has_biome_tag",
									"value": "nether"
								},
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "warm"
										},
										{
											"test": "has_biome_tag",
											"value": "ocean"
										}
									]
								},
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "lukewarm"
										},
										{
											"test": "has_biome_tag",
											"value": "ocean"
										}
									]
								},
								{
									"test": "has_biome_tag",
									"value": "mangrove_swamp"
								}
							]
						},
						"add": {
							"component_groups": [
								"warm"
							]
						}
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "has_biome_tag",
									"value": "mountain"
								},
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "mountains"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "meadow"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "cherry_grove"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "stony_peaks"
										}
									]
								},
								{
									"test": "has_biome_tag",
									"value": "ice"
								},
								{
									"test": "has_biome_tag",
									"value": "cold"
								},
								{
									"test": "has_biome_tag",
									"value": "frozen"
								},
								{
									"test": "has_biome_tag",
									"value": "the_end"
								},
								{
									"test": "has_biome_tag",
									"value": "deep_dark"
								}
							]
						},
						"add": {
							"component_groups": [
								"cold"
							]
						}
					},
					{
						"randomize": [
							{
								"weight": 5,
								"add": {
									"component_groups": [
										"muppet_baby",
										"muppet_wild"
									]
								}
							},
							{
								"weight": 95,
								"add": {
									"component_groups": [
										"muppet_adult",
										"muppet_wild"
									]
								}
							}
						]
					}
				]
			},
			"replace_bedrock": {
				"remove": {
					"component_groups": [
						"muppet_happy"
					]
				},
				"queue_command": {
					"command": [
						"execute at @e[type=v360:muppet] run fill ~-5 -64 ~-5 ~5 -64 ~5 bedrock [] replace command_block"
					]
				}
			},
			"muppet_baby": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"temperate"
							]
						}
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "has_biome_tag",
									"value": "desert"
								},
								{
									"test": "has_biome_tag",
									"value": "jungle"
								},
								{
									"test": "has_biome_tag",
									"value": "savanna"
								},
								{
									"test": "has_biome_tag",
									"value": "mesa"
								},
								{
									"test": "has_biome_tag",
									"value": "nether"
								},
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "warm"
										},
										{
											"test": "has_biome_tag",
											"value": "ocean"
										}
									]
								},
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "lukewarm"
										},
										{
											"test": "has_biome_tag",
											"value": "ocean"
										}
									]
								},
								{
									"test": "has_biome_tag",
									"value": "mangrove_swamp"
								}
							]
						},
						"add": {
							"component_groups": [
								"warm"
							]
						}
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "has_biome_tag",
									"value": "mountain"
								},
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "mountains"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "meadow"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "cherry_grove"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "stony_peaks"
										}
									]
								},
								{
									"test": "has_biome_tag",
									"value": "ice"
								},
								{
									"test": "has_biome_tag",
									"value": "cold"
								},
								{
									"test": "has_biome_tag",
									"value": "frozen"
								},
								{
									"test": "has_biome_tag",
									"value": "the_end"
								},
								{
									"test": "has_biome_tag",
									"value": "deep_dark"
								}
							]
						},
						"add": {
							"component_groups": [
								"cold"
							]
						}
					},
					{
						"add": {
							"component_groups": [
								"muppet_baby",
								"muppet_wild"
							]
						}
					}
				]
			},
			"walk_on_water": {
				"queue_command": {
					"command": [
						"fill ~2 ~-1 ~2 ~-2 ~-1 ~-2 v360:ancient_dirt [] replace water",
						"fill ~4 ~-1 ~-3 ~2 ~-1 ~3 water [] replace v360:ancient_dirt",
						"fill ~-3 ~-1 ~4 ~3 ~-1 ~2 water [] replace v360:ancient_dirt",
						"fill ~3 ~-1 ~-4 ~-3 ~-1 ~-2 water [] replace v360:ancient_dirt",
						"fill ~-4 ~-1 ~3 ~-2 ~-1 ~-3 water [] replace v360:ancient_dirt"
					]
				}
			},
			"tame": {
				"remove": {
					"component_groups": [
						"muppet_wild"
					]
				},
				"add": {
					"component_groups": [
						"muppet_tame"
					]
				}
			},
			"sniffy": {
				"add": {
					"component_groups": [
						"sniffy"
					]
				},
				"remove": {
					"component_groups": [
						"cold",
						"temperate",
						"warm"
					]
				}
			}
		}
	}
}