{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:frog",
      "is_experimental": false,
      "is_summonable": true,
      "is_spawnable": true,
      "spawn_category": "creature"
    },
    "components": {
      "minecraft:behavior.breed": {
        "priority": 4
      },
      "minecraft:behavior.croak": {
        "duration": 4.5,
        "filters": {
          "all_of": [
            {
              "test": "in_water",
              "value": false
            },
            {
              "test": "in_lava",
              "value": false
            }
          ]
        },
        "interval": [
          10,
          20
        ],
        "priority": 9
      },
      "minecraft:behavior.eat_mob": {
        "run_speed": 2,
        "eat_animation_time": 0.3,
        "pull_in_force": 0.75,
        "reach_mob_distance": 1.75,
        "eat_mob_sound": "tongue",
        "loot_table": "loot_tables/entities/frog.json",
        "priority": 7
      },
      "minecraft:behavior.jump_to_block": {
        "cooldown_range": [
          5,
          7
        ],
        "priority": 10,
        "max_velocity": 1,
        "forbidden_blocks": [
          "minecraft:water"
        ],
        "minimum_distance": 1,
        "minimum_path_length": 2,
        "preferred_blocks": [
          "minecraft:waterlily",
          "minecraft:big_dripleaf"
        ],
        "preferred_blocks_chance": 0.5,
        "scale_factor": 0.6,
        "search_height": 4,
        "search_width": 8
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "priority": 12
      },
      "minecraft:behavior.move_to_land": {
        "goal_radius": 2,
        "priority": 6,
        "search_count": 80,
        "search_height": 8,
        "search_range": 30
      },
      "minecraft:behavior.nearest_attackable_target": {
        "must_see": true,
        "within_radius": 16,
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "slime"
                },
                {
                  "test": "is_variant",
                  "subject": 1,
                  "operator": 0,
                  "value": 1
                }
              ]
            }
          },
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "magmacube"
                },
                {
                  "test": "is_variant",
                  "subject": 1,
                  "operator": 0,
                  "value": 1
                }
              ]
            }
          }
        ],
        "priority": 8
      },
      "minecraft:behavior.panic": {
        "damage_sources": [
          "all"
        ],
        "priority": 1,
        "speed_multiplier": 2.0
      },
      "minecraft:behavior.random_stroll": {
        "priority": 11
      },
      "minecraft:behavior.tempt": {
        "can_tempt_vertically": true,
        "items": [
          "slime_ball"
        ],
        "priority": 5,
        "speed_multiplier": 1.25
      },
      "minecraft:breathable": {
        "breathes_air": true,
        "breathes_water": true,
        "suffocate_time": 0,
        "generates_bubbles": false,
        "total_supply": 15
      },
      "minecraft:breedable": {
        "breed_items": [
          {
            "item": "slime_ball"
          }
        ],
        "breeds_with": {
          "minecraft:frog": {
            "event": "become_pregnant"
          }
        },
        "causes_pregnancy": true,
        "require_tame": false
      },
      "minecraft:collision_box": {
        "height": 0.55,
        "width": 0.5
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "damage_modifier": -5,
          "deals_damage": "yes"
        }
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:experience_reward": {
        "on_bred": {
          "expression": "Math.Random(1,7)",
          "version": 8
        },
        "on_death": {
          "expression": "query.last_hit_by_player ? Math.Random(1,3) : 0",
          "version": 8
        }
      },
      "minecraft:health": {
        "value": 10
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "cause": "lava",
            "damage_per_tick": 4,
            "filters": {
              "operator": "==",
              "test": "in_lava",
              "subject": "self",
              "value": true
            }
          }
        ]
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:jump.static": {},
      "minecraft:leashable": {
        "can_be_cut": false,
        "can_be_stolen": false,
        "on_unleash_interact_only": true,
        "presets": [
          {
            "hard_distance": 6.0,
            "max_distance": 10.0,
            "spring_type": "bouncy"
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.1
      },
      "minecraft:movement.amphibious": {},
      "minecraft:nameable": {},
      "minecraft:navigation.generic": {
        "avoid_damage_blocks": true,
        "can_path_over_water": true,
        "can_sink": false,
        "can_swim": true,
        "can_walk": true,
        "is_amphibious": true,
        "using_door_annotation": true
      },
      "minecraft:offspring": {
        "offspring_pairs": {
          "minecraft:frog": "minecraft:tadpole"
        }
      },
      "minecraft:physics": {},
      "minecraft:pushable": {},
      "minecraft:type_family": {
        "family": [
          "frog",
          "mob"
        ]
      },
      "minecraft:underwater_movement": {
        "value": 0.15
      }
    },
    "component_groups": {
      "cold_frog": {
        "minecraft:variant": {
          "value": 1
        }
      },
      "pregnant": {
        "minecraft:behavior.lay_egg": {
          "allow_laying_from_below": true,
          "lay_seconds": 2,
          "egg_type": "minecraft:frog_spawn",
          "search_height": 3,
          "priority": 2,
          "goal_radius": 1.7,
          "lay_egg_sound": "lay_spawn",
          "on_lay": {
            "event": "laid_egg",
            "target": "self"
          },
          "search_range": 10,
          "use_default_animation": false,
          "speed_multiplier": 1.0,
          "target_blocks": [
            "minecraft:water"
          ],
          "target_materials_above_block": [
            "Air"
          ]
        },
        "minecraft:behavior.move_to_water": {
          "goal_radius": 1.5,
          "priority": 3,
          "search_height": 5,
          "search_range": 20
        }
      },
      "temperate_frog": {
        "minecraft:variant": {
          "value": 0
        }
      },
      "warm_frog": {
        "minecraft:variant": {
          "value": 2
        }
      }
    },
    "events": {
      "spawn_warm": {
        "add": {
          "component_groups": [
            "warm_frog"
          ]
        }
      },
      "become_pregnant": {
        "add": {
          "component_groups": [
            "pregnant"
          ]
        }
      },
      "laid_egg": {
        "remove": {
          "component_groups": [
            "pregnant"
          ]
        }
      },
      "spawn_temperate": {
        "add": {
          "component_groups": [
            "temperate_frog"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "temperate_frog"
              ]
            }
          },
          {
            "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_frog"
              ]
            }
          },
          {
            "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_frog"
              ]
            }
          }
        ]
      },
      "spawn_cold": {
        "add": {
          "component_groups": [
            "cold_frog"
          ]
        }
      },
      "minecraft:entity_transformed": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "temperate_frog"
              ]
            }
          },
          {
            "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_frog"
              ]
            }
          },
          {
            "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_frog"
              ]
            }
          }
        ]
      }
    }
  }
}