{
   "format_version":"1.21.0",
   "minecraft:entity":{
      "description":{
         "identifier":"true:rat",
         "spawn_category":"creature",
         "is_spawnable":true,
         "is_summonable":true
      },
      "component_groups":{
         "true:default":{
            "minecraft:loot":{
               "table":"loot_tables/dead_animals/rat.json"
            }
         }
      },
      "components":{
         "minecraft:type_family":{
            "family":[
               "rat"
            ]
         },
         "minecraft:collision_box":{
            "width":0.5,
            "height":0.5
         },
         "minecraft:health":{
            "value":3,
            "max":3
         },
         "minecraft:scale":{
            "value":0.8
         },
         "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.3
         },
         "minecraft:underwater_movement":{
            "value":0.09
         },
         "minecraft:navigation.generic":{
            "can_path_over_water":false,
            "avoid_water":false,
            "avoid_damage_blocks":true,
            "can_swim":true,
            "can_breach":true,
            "can_sink":true
         },
         "minecraft:behavior.move_to_land":{
            "priority":3,
            "search_range":64,
            "search_height":5,
            "goal_radius":0.5
         },
         "minecraft:behavior.random_swim":{
            "priority":5,
            "interval":0,
            "xz_dist":20
         },
         "minecraft:jump.static":{
            
         },
         "minecraft:can_climb":{
            
         },
         "minecraft:movement.basic":{
            
         },
         "minecraft:attack":{
            "damage":1
         },
         "minecraft:behavior.melee_attack":{
            "priority":3
         },
         "minecraft:behavior.hurt_by_target":{
            "priority":1
         },
         "minecraft:damage_sensor":{
            "triggers":{
               "cause":"fall",
               "deals_damage":false
            }
         },
         "minecraft:follow_range":{
            "value":32,
            "max":32
         },
         "minecraft:despawn":{
            "filters":{
               "test":"distance_to_nearest_player",
               "subject":"self",
               "operator":">",
               "value":32
            }
         },
         "minecraft:behavior.avoid_mob_type":{
            "priority":2,
            "entity_types":[
               {
                  "filters":{
                     "any_of":[
                        {
                           "test":"is_family",
                           "subject":"other",
                           "value":"cat"
                        }
                     ]
                  },
                  "max_dist":8,
                  "walk_speed_multiplier":1.0,
                  "sprint_speed_multiplier":1.0
               }
            ]
         },
         "minecraft:behavior.random_look_around":{
            "priority":9
         },
         "minecraft:behavior.random_stroll":{
            "priority":4,
            "speed_multiplier":1.0
         },
         "minecraft:persistent":{
            
         },
         "minecraft:physics":{
            
         },
         "minecraft:behavior.nearest_attackable_target":{
            "priority":0,
            "must_see":false,
            "reselect_targets":true,
            "within_radius":32.0,
            "must_see_forget_duration":8.0,
            "entity_types":[
               {
                  "filters":{
                     "any_of":[
                        {
                           "test":"is_family",
                           "subject":"other",
                           "value":"zombie_corpse"
                        }
                     ]
                  },
                  "max_dist":32
               }
            ]
         }
      },
      "events":{
         "minecraft:entity_spawned":{
            "add":{
               "component_groups":[
                  "true:default"
               ]
            }
         }
      }
   }
}