{  
   "minecraft:entity":{  
      "version":0.5,
      "component_groups":{  
         "minecraft:baby":{  
            "minecraft:is_baby":{  

            },
       "minecraft:scale_by_age": {
          "start_scale": 0.5,
          "end_scale": 1.0
        },
        "minecraft:ageable": {
          "duration": 1200,
          "feedItems": [
            {
              "item": "fish",
              "growth": 0.025
            },
            {
              "item": "clownfish",
              "growth": 0.025
            },
            {
              "item": "salmon",
              "growth": 0.025
            },
            {
              "item": "cooked_fish",
              "growth": 0.05
            },
            {
              "item": "cooked_salmon",
              "growth": 0.05
            }			
          ],
          "grow_up": {
            "event": "minecraft:ageable_grow_up",
            "target": "self"
          }
        },
            "minecraft:behavior.follow_parent":{  
               "priority":4,
               "speed_multiplier":1.25
            }
         },

         "minecraft:baby_wild":{  
            "minecraft:on_target_acquired":{  
               "event":"minecraft:on_scared",
               "target":"self"
            },
            "minecraft:behavior.panic":{  
               "priority":1,
               "speed_multiplier":2.0
            },
            "minecraft:behavior.nearest_attackable_target":{  
               "priority":4,
               "entity_types":[  
                  {  
                     "filters":{  
                        "other_with_families":"player"
                     },
                     "max_dist":16
                  }
               ],
               "must_see":false
            }
         },

         "minecraft:baby_scared":{  
            "minecraft:angry":{  
               "duration":1,
               "broadcastAnger":true,
               "broadcastRange":41,
               "calm_event":{  
                  "event":"minecraft:baby_on_calm",
                  "target":"self"
               }
            }
         },

         "minecraft:adult":{  
            "minecraft:loot":{  
               "table":"loot_tables/entities/polar_bear.json"
            },
			"minecraft:behavior.breed": {
			  "priority": 2,
			  "speed_multiplier": 1.0
			}
         },

         "minecraft:adult_wild":{  
            "minecraft:on_target_acquired":{  
               "event":"minecraft:on_anger",
               "target":"self"
            },
            "minecraft:on_friendly_anger":{  
               "event":"minecraft:on_anger",
               "target":"self"
            },
            "minecraft:rideable":{  
               "seat_count":1,
               "family_types":[  
                  "player",
                  "zombie"
               ],
               "interact_text":"action.interact.mount",
               "seats":{  
                  "position":[  
                     0.0,
                     1.1,
                     -0.2
                  ]
               }
            },
            "minecraft:behavior.mount_pathing":{  
               "priority":2,
               "speed_multiplier":1.5,
               "target_dist":0.0,
               "track_target":true
            },
            "minecraft:tamemount":{  
               "minTemper":0,
               "maxTemper":100,
               "feed_text":"action.interact.feed",
               "ride_text":"action.interact.mount",
               "feedItems":[  
					{
					  "item": "fish",
					  "temperMod": 3
					},
					{
					  "item": "clownfish",
					  "temperMod": 3
					},
					{
					  "item": "salmon",
					  "temperMod": 3
					},
					{
					  "item": "cooked_fish",
					  "temperMod": 5
					},
					{
					  "item": "cooked_salmon",
					  "temperMod": 0.05
					}	
               ],
               "tame_event":{  
                  "event":"minecraft:on_tame",
                  "target":"self"
               }
            }
         },
         "minecraft:adult_tamed":{  
            "minecraft:is_tamed":{  

            },
            "minecraft:rideable":{  
               "priority":0,
               "seat_count":2,
               "crouching_skip_interact":true,
               "family_types":[  
                  "player"
               ],
               "interact_text":"action.interact.ride.polar_bear",
               "seats":{  
                  "position":[  
                     0.0,
                     1.15,
                     -0.05
                  ]
               }
            },
            "minecraft:inventory":{  
               "inventory_size":1,
               "container_type":"horse"
            },
			"minecraft:breedable": {
			  "requireTame": true,
			  "inheritTamed": false,
			  "breedsWith": [
				{
				  "mateType": "minecraft:polar_bear",
				  "babyType": "minecraft:polar_bear",
				  "breed_event": {
					"event": "minecraft:entity_born",
					"target": "baby"
				  }
				}
			  ],
			  "breedItems": [
				"cooked_salmon"
			  ]
			},
            "minecraft:behavior.tempt":{  
               "priority":5,
               "speed_multiplier":1.2,
               "items":[  
                  "fish",
                  "clownfish",
				  "salmon",
				  "cooked_fish",
				  "cooked_salmon"
               ]
            }
         },

         "minecraft:adult_hostile":{  
            "minecraft:attack":{  
               "damage":6.0
            },
            "minecraft:angry":{  
               "duration":500,
               "broadcastAnger":false,
               "broadcastRange":20,
               "calm_event":{  
                  "event":"minecraft:on_calm",
                  "target":"self"
               }
            },
            "minecraft:behavior.stomp_attack":{  
               "priority":1,
               "track_target":true
            }
         },

         "minecraft:adult_leashed":{  
            "minecraft:behavior.move_towards_restriction":{  
               "priority":2,
               "speed_multiplier":1.0
            }
         },

         "minecraft:adult_saddled":{ 
            "minecraft:is_saddled":{  },
            "minecraft:input_ground_controlled":{  },
			"minecraft:can_power_jump": {  },
            "minecraft:behavior.player_ride_tamed":{  },
			"minecraft:horse.jump_strength": {
			"value": {
			  "range_min": 0.4, 
			  "range_max": 1.0
			}
          }
		}
      },
      "components":{  
         "minecraft:identifier":{  
			"id": "minecraft:pig"
         },
         "minecraft:type_family":{  
            "family":[  
               "polarbear"
            ]
         },
         "minecraft:equippable":{  
            "slots":[  
               {  
                  "slot":0,
                  "item":"saddle",
                  "accepted_items":[  
                     "saddle"
                  ],
                  "on_equip":{  
                     "event":"minecraft:adult_saddled"
                  },
                  "on_unequip":{  
                     "event":"minecraft:adult_unsaddled"
                  }
               }
            ]
         },
         "minecraft:healable":{  
            "items":[  
				{
				  "item": "fish",
				  "heal_amount": 2
				},
				{
				  "item": "clownfish",
				  "heal_amount": 2
				},
				{
				  "item": "salmon",
				  "heal_amount": 2
				},
				{
				  "item": "cooked_fish",
				  "heal_amount": 4
				},
				{
				  "item": "cooked_salmon",
				  "heal_amount": 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:breathable":{  
            "totalSupply":15,
            "suffocateTime":0
         },
         "minecraft:nameable":{  

         },
         "minecraft:health":{  
            "value":30
         },
         "minecraft:collision_box":{  
            "width":1.3,
            "height":1.4
         },
         "minecraft:movement":{  
			"value": {
			  "range_min": 0.1125, 
			  "range_max": 0.3375
			}
         },
         "minecraft:navigation.walk":{  
            "can_float":true
         },
         "minecraft:movement.basic":{  

         },
         "minecraft:jump.static":{  

         },
         "minecraft:can_climb":{  

         },
         "minecraft:follow_range":{  
            "value":48
         },
         "minecraft:behavior.float":{  
            "priority":0
         },
         "minecraft:behavior.hurt_by_target":{  
            "priority":1
         },
         "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":9,
                  "add":{  
                     "component_groups":[  
                        "minecraft:adult",
                        "minecraft:adult_wild"
                     ]
                  }
               },
               {  
                  "weight":1,
                  "add":{  
                     "component_groups":[  
                        "minecraft:baby",
                        "minecraft:baby_wild"
                     ]
                  }
               }
            ]
         },

         "minecraft:entity_born":{  
            "add":{  
               "component_groups":[  
                  "minecraft:baby",
                  "minecraft:baby_wild"
               ]
            }
         },

         "minecraft:ageable_grow_up":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:baby",
                  "minecraft:baby_wild",
                  "minecraft:baby_scared"
               ]
            },
            "add":{  
               "component_groups":[  
                  "minecraft:adult",
                  "minecraft:adult_wild"
               ]
            }
         },

         "minecraft:on_calm":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:adult_hostile"
               ]
            },
            "add":{  
               "component_groups":[  
                  "minecraft:adult_wild"
               ]
            }
         },
         "minecraft:on_anger":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:adult_wild"
               ]
            },
            "add":{  
               "component_groups":[  
                  "minecraft:adult_hostile"
               ]
            }
         },
         "minecraft:baby_on_calm":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:baby_scared"
               ]
            },
            "add":{  
               "component_groups":[  
                  "minecraft:baby_wild"
               ]
            }
         },

         "minecraft:on_scared":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:baby_wild"
               ]
            },
            "add":{  
               "component_groups":[  
                  "minecraft:baby_scared"
               ]
            }
         },

         "minecraft:on_tame":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:adult_wild"
               ]
            },
            "add":{  
               "component_groups":[  
                  "minecraft:adult_tamed"
               ]
            }
         },

         "minecraft:on_leash":{  
            "add":{  
               "component_groups":[  
                  "minecraft:adult_leashed"
               ]
            }
         },
         "minecraft:on_unleash":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:adult_leashed"
               ]
            }
         },

         "minecraft:adult_saddled":{  
            "add":{  
               "component_groups":[  
                  "minecraft:adult_saddled"
               ]
            }
         },
         "minecraft:adult_unsaddled":{  
            "remove":{  
               "component_groups":[  
                  "minecraft:adult_saddled"
               ]
            }
         }
      }
   }
}