{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "minecraft:tadpole",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false,
			"properties": {
				"ldz:ice_overlay": {
					"type": "bool",
					"client_sync": true,
					"default": false
				}
			},
			"animations": {
				"ctrl.ice_timer": "controller.animation.vanilla.ice_timer",
				"ice_timer": "animation.vanilla.ice_timer",
				"ice_damage": "animation.vanilla.ice_damage"
			},
			"scripts": {
				"animate": [
					"ctrl.ice_timer"
				]
			}
		},
		"component_groups": {
			"ice_overlay": {
				"minecraft:is_shaking": {}
			},
			"grow_up": {
				"minecraft:transformation": {
					"into": "minecraft:frog",
					"transformation_sound": "convert_to_frog"
				}
			},
			"instant_despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:type_family": {
				"family": [
					"tadpole",
					"mob"
				]
			},
			"minecraft:collision_box": {
				"width": 0.8,
				"height": 0.6
			},
			"minecraft:breathable": {
				"total_supply": 8,
				"suffocate_time": 0,
				"breathes_water": true,
				"breathes_air": false,
				"generates_bubbles": false
			},
			"minecraft:nameable": {},
			"minecraft:health": {
				"value": 6
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:navigation.generic": {
				"can_path_over_water": true,
				"can_swim": true,
				"can_walk": false,
				"can_sink": false,
				"avoid_damage_blocks": true
			},
			"minecraft:movement.sway": { //This is needed to allow the tadpole to swim
				"sway_amplitude": 0
			},
			"minecraft:movement": {
				"value": 0.1
			},
			"minecraft:underwater_movement": {
				"value": 0.1
			},
			"minecraft:physics": {},
			"minecraft:pushable": {},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:is_baby": {},
			"minecraft:ageable": {
				"duration": 1200,
				"feed_items": [
					"slime_ball"
				],
				"grow_up": {
					"event": "ageable_grow_up",
					"target": "self"
				}
			},
			"minecraft:behavior.panic": {
				"priority": 1,
				"speed_multiplier": 2
			},
			"minecraft:behavior.tempt": {
				"priority": 5,
				"speed_multiplier": 1.25,
				"can_tempt_vertically": true,
				"items": [
					"slime_ball"
				]
			},
			"minecraft:behavior.random_swim": {
				"priority": 2,
				"interval": 100
			},
			"minecraft:behavior.look_at_player": {
				"priority": 3,
				"target_distance": 6,
				"probability": 0.02
			}
		},
		"events": {
			"ageable_grow_up": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"grow_up"
							]
						}
					}
				]
			},
			"set_ice_overlay_to_true": {
				"set_property": {
					"ldz:ice_overlay": true
				},
				"add": {
					"component_groups": [
						"ice_overlay"
					]
				}
			},
			"set_ice_overlay_to_false": {
				"set_property": {
					"ldz:ice_overlay": false
				},
				"remove": {
					"component_groups": [
						"ice_overlay"
					]
				}
			},
			"despawn": {
				"add": {
					"component_groups": [
						"instant_despawn"
					]
				}
			}
		}
	}
}