{
  "minecraft:entity": {
    "version": 0.5,

    "component_groups": {
      "minecraft:lion_baby": {
        "minecraft:is_baby": {
        },
        "minecraft:scale": {
          "value": 0.5
        }
      },

      "minecraft:lion_baby_wild": {
        "minecraft:on_target_acquired": {
          "event": "minecraft:on_scared",
          "target": "self"
        },
        "minecraft:behavior.follow_parent": {
          "priority": 4,
          "speed_multiplier": 1.2
        },
        "minecraft:health": {
          "value": 10,
          "max": 10
        },
        "minecraft:on_hurt_by_player": {
          "event": "minecraft:on_scared",
          "target": "self"
        },
        "minecraft:ageable": {
          "duration": 1200,
          "grow_up": {
            "event": "minecraft:ageable_grow_up_wild",
            "target": "self"
          }
        },
        "minecraft:behavior.tempt": {
        "priority": 3,
        "speed_multiplier": 1,
        "items": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ]
        },
        "minecraft:tameable": {
          "probability": 0.33,
          "tameItems": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ],
          "tame_event": {
            "event": "minecraft:on_tame_baby",
            "target": "self"
          }
        },
        "minecraft:behavior.panic": {
          "priority": 1,
          "speed_multiplier": 1.25
        },
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 4,
          "entity_types": [
            {
              "filters": { "other_with_families": "player" },
              "max_dist": 16
            }
          ],
          "must_see": false
        }
      },

      "minecraft:lion_baby_scared": {
        "minecraft:angry": {
          "duration": 1,
          "broadcastAnger": true,
          "broadcastRange": 41,
          "calm_event": {
            "event": "minecraft:baby_on_calm",
            "target": "self"
          }
        }
      },
      
      "minecraft:lion_baby_tame": {
        "minecraft:is_tamed": {
        },
        "minecraft:health": {
        "value": 15,
        "max": 15
        },
        "minecraft:sittable": {
        },
        "minecraft:behavior.panic": {
        "priority": 3,
        "speed_multiplier": 1.25
        },
        "minecraft:behavior.tempt": {
        "priority": 3,
        "speed_multiplier": 1,
        "items": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ]
        },
        "minecraft:behavior.follow_owner": {
          "priority": 2,
          "speed_multiplier": 1.2,
          "start_distance": 15,
          "stop_distance": 4
        },
        "minecraft:leashable": {
          "soft_distance": 4.0,
          "hard_distance": 6.0,
          "max_distance": 10.0,
          "on_leash": {
            "event": "minecraft:on_leash",
            "target": "self"
          },
          "on_unleash": {
            "event": "minecraft:on_unleash",
            "target": "self"
          }
        },
        "minecraft:ageable": {
          "duration": 1200,
          "feedItems": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ],
          "grow_up": {
            "event": "minecraft:ageable_grow_up_tame",
            "target": "self"
          }
        }
      },

      "minecraft:lion_adult": {
        "minecraft:type_family": {
          "family": [ "lion_adult" ]
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/lion.json"
        },
        "minecraft:behavior.beg": {
        "priority": 6,
        "look_distance": 8,
        "look_time": [ 2, 4 ],
        "items": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ]
        }
      },

      "minecraft:lion_adult_wild": {
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 4,
          "attack_interval": 20,
          "entity_types": [
            {
              "filters": { "other_with_families": [ "pig", "player", "sheep", "horse", "mule", "donkey", "villager", "polarbear", "undead", "lion_adult" ]
              },
              "max_dist": 20,
              "must_see": true
            }
          ]
        },
        "minecraft:behavior.hurt_by_target": {
          "priority": 2,
          "event": "minecraft:on_anger",
          "target": "self"
        },
        "minecraft:on_target_acquired": {
          "event": "minecraft:on_anger",
          "target": "self"
        },
        "minecraft:on_hurt_by_player": {
          "event": "minecraft:on_anger",
          "target": "self"
        },
        "minecraft:on_friendly_anger": {
          "event": "minecraft:on_anger",
          "target": "self"
        }
      },

      "minecraft:lion_adult_hostile": {
        "minecraft:attack": {
          "damage": {
            "range_min": 4,
            "range_max": 7
          }
        },
        "minecraft:angry": {
          "duration": 100,
          "broadcastAnger": false,
          "broadcastRange": 20,
          "calm_event": {
            "event": "minecraft:on_calm",
            "target": "self"
          }
        }
      },
      
      "minecraft:lion_adult_tame": {
      	 "minecraft:is_tamed": {
        },
        "minecraft:health": {
          "value": 40,
          "max": 40
        },
        "minecraft:behavior.follow_owner": {
          "priority": 4,
          "speed_multiplier": 1.2,
          "start_distance": 15,
          "stop_distance": 4
        },
        "minecraft:healable": {
        "items": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ]
        },
        "minecraft:attack": {
          "damage": {
            "range_min": 6,
            "range_max": 9
          }
        },
        "minecraft:behavior.owner_hurt_by_target": {
          "priority": 1
        },
        "minecraft:behavior.owner_hurt_target": {
          "priority": 2
        },
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 5,
          "attack_interval": 50,
          "entity_types": [
            {
              "filters": { "other_with_families": [ "pig", "sheep", "undead" ] },
              "max_dist": 16,
              "must_see": true
            }
          ]
        },
        "minecraft:breedable": {
          "requireTame": true,
          "breedsWith": {
            "mateType": "minecraft:mushroomcow",
            "babyType": "minecraft:mushroomcow",
            "breed_event": {
              "event": "minecraft:entity_born",
              "target": "baby"
            }
          },
          "breedItems": [ "porkchop",
          "fish",
          "salmon",
          "clownfish",
          "pufferfish",
          "beef",
          "chicken",
          "muttonRaw",
          "rotten_flesh",
          "rabbit" 
          ]
        },
        "minecraft:leashable": {
          "soft_distance": 4.0,
          "hard_distance": 6.0,
          "max_distance": 10.0,
          "on_leash": {
            "event": "minecraft:on_leash",
            "target": "self"
          },
          "on_unleash": {
            "event": "minecraft:on_unleash",
            "target": "self"
          }
        },
        "minecraft:sittable": {
        },
        "minecraft:behavior.breed": {
          "priority": 6
        }
      },

      "minecraft:lion_leashed": {
        "minecraft:behavior.move_towards_restriction": {
          "priority": 2,
          "speed_multiplier": 1.0
        }
      }
    },

    "components": {
      "minecraft:identifier": {
        "id": "minecraft:mushroomcow"
      },
      "minecraft:type_family": {
        "family": [ "lion" ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:nameable": {
      },
      "minecraft:health": {
        "value": 30
      },
      "minecraft:behavior.melee_attack": {
        "priority": 1,
        "speed_multiplier": 1.25,
        "target_dist": 1.0,
        "track_target": true
      },
      "minecraft:collision_box": {
        "width": 0.9,
        "height": 1.1
      },
      "minecraft:movement": {
        "value": 0.20
      },
      "minecraft:follow_range": {
        "value": 32
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.stay_while_sitting": {
        "priority": 0
      },
      "minecraft:behavior.random_stroll": {
        "priority": 5
      },
      "minecraft:behavior.look_at_player": {
        "priority": 6,
        "target_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 7
      }
    },

    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 8,
            "add": {
              "component_groups": [
                "minecraft:lion_adult",
                "minecraft:lion_adult_wild"
              ]
            }
          },
          {
            "weight": 2,
            "add": {
              "component_groups": [
                "minecraft:lion_baby",
                "minecraft:lion_baby_wild"
              ]
            }
          }
        ]
      },

      "minecraft:entity_born": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:lion_baby",
            "minecraft:lion_baby_tame"
          ]
        }
      },
      "minecraft:ageable_grow_up_tame": {
        "remove": {
          "component_groups": [
            "minecraft:lion_baby",
            "minecraft:lion_baby_tame"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_adult",
            "minecraft:lion_adult_tame"
          ]
        }
      },
      "minecraft:ageable_grow_up_wild": {
        "remove": {
          "component_groups": [
            "minecraft:lion_baby",
            "minecraft:lion_baby_wild",
            "minecraft:lion_baby_scared"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_adult",
            "minecraft:lion_adult_wild"
          ]
        }
      },
      "minecraft:ageable_set_baby": {
        "remove": {
          "component_groups": [
            "minecraft:lion_adult"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_baby"
          ]
        }
      },
      "minecraft:on_tame_baby": {
        "remove": {
          "component_groups": [
            "minecraft:lion_baby_wild",
            "minecraft:lion_baby_scared"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_baby_tame"
          ]
        }
      },

      "minecraft:on_calm": {
        "remove": {
          "component_groups": [
            "minecraft:lion_adult_hostile"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_adult_wild"
          ]
        }
      },

      "minecraft:on_anger": {
        "remove": {
          "component_groups": [
            "minecraft:lion_adult_wild"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_adult_hostile"
          ]
        }
      },

      "minecraft:baby_on_calm": {
        "remove": {
          "component_groups": [
            "minecraft:lion_baby_scared"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_baby_wild"
          ]
        }
      },

      "minecraft:on_scared": {
        "remove": {
          "component_groups": [
            "minecraft:lion_baby_wild"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:lion_baby_scared"
          ]
        }
      }
    }
  }
}