{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:sheep",
      "is_summonable": true,
      "is_spawnable": true,
      "spawn_category": "creature"
    },
    "components": {
      "minecraft:balloonable": {
        "mass": 0.75
      },
      "minecraft:behavior.eat_block": {
        "eat_and_replace_block_pairs": [
          {
            "eat_block": "grass",
            "replace_block": "dirt"
          },
          {
            "eat_block": "tallgrass",
            "replace_block": "air"
          }
        ],
        "on_eat": {
          "event": "minecraft:on_eat_block",
          "target": "self"
        },
        "priority": 6,
        "success_chance": "query.is_baby ? 0.02 : 0.001",
        "time_until_eat": 1.8
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.follow_parent": {
        "priority": 5,
        "speed_multiplier": 1.1
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "look_distance": 6,
        "priority": 8
      },
      "minecraft:behavior.mount_pathing": {
        "priority": 2,
        "target_dist": 0.0,
        "speed_multiplier": 1.5,
        "track_target": true
      },
      "minecraft:behavior.panic": {
        "priority": 1,
        "speed_multiplier": 1.25
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:behavior.random_stroll": {
        "priority": 7,
        "speed_multiplier": 0.8
      },
      "minecraft:behavior.tempt": {
        "items": [
          "wheat"
        ],
        "priority": 4,
        "speed_multiplier": 1.25
      },
      "minecraft:breathable": {
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:can_climb": {},
      "minecraft:collision_box": {
        "height": 1.3,
        "width": 0.9
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:health": {
        "max": 8,
        "value": 8
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "cause": "lava",
            "damage_per_tick": 4,
            "filters": {
              "operator": "==",
              "test": "in_lava",
              "subject": "self",
              "value": true
            }
          }
        ]
      },
      "minecraft:interact": {
        "interactions": [
          {
            "play_sounds": "shear",
            "cooldown": 2.5,
            "hurt_item": 1,
            "spawn_items": {
              "table": "loot_tables/entities/sheep_shear.json"
            },
            "on_interact": {
              "event": "minecraft:on_sheared",
              "filters": {
                "all_of": [
                  {
                    "domain": "hand",
                    "subject": "other",
                    "test": "has_equipment",
                    "value": "shears"
                  },
                  {
                    "subject": "other",
                    "test": "is_family",
                    "value": "player"
                  },
                  {
                    "operator": "!=",
                    "test": "has_component",
                    "value": "minecraft:is_baby"
                  },
                  {
                    "test": "has_component",
                    "value": "minecraft:is_dyeable"
                  }
                ]
              },
              "target": "self"
            },
            "interact_text": "action.interact.shear",
            "swing": false,
            "vibration": "shear",
            "use_item": false
          }
        ]
      },
      "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",
            "soft_distance": 4.0
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:movement.basic": {},
      "minecraft:nameable": {},
      "minecraft:navigation.walk": {
        "avoid_water": true,
        "can_path_over_water": true,
        "using_door_annotation": true
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:type_family": {
        "family": [
          "sheep",
          "mob"
        ]
      }
    },
    "component_groups": {
      "minecraft:loot_sheared": {
        "minecraft:loot": {
          "table": "loot_tables/entities/sheep_sheared.json"
        }
      },
      "minecraft:rideable_wooly": {
        "minecraft:rideable": {
          "family_types": [
            "zombie"
          ],
          "seat_count": 1,
          "seats": {
            "position": [
              0.0,
              0.975,
              0.0
            ]
          }
        }
      },
      "minecraft:loot_wooly": {
        "minecraft:loot": {
          "table": "loot_tables/entities/sheep.json"
        }
      },
      "minecraft:rideable_sheared": {
        "minecraft:rideable": {
          "family_types": [
            "zombie"
          ],
          "seat_count": 1,
          "seats": {
            "position": [
              0.0,
              0.9,
              0.0
            ]
          }
        }
      },
      "minecraft:sheep_adult": {
        "minecraft:behavior.breed": {
          "priority": 3
        },
        "minecraft:breedable": {
          "breed_items": [
            {
              "item": "wheat"
            }
          ],
          "breeds_with": {
            "minecraft:sheep": {}
          },
          "require_tame": false
        },
        "minecraft:experience_reward": {
          "on_bred": {
            "expression": "Math.Random(1,7)",
            "version": 12
          },
          "on_death": {
            "expression": "query.last_hit_by_player ? Math.Random(1,3) : 0",
            "version": 12
          }
        },
        "minecraft:offspring": {
          "combine_parent_colors": true,
          "offspring_pairs": {
            "minecraft:sheep": "minecraft:sheep"
          }
        }
      },
      "minecraft:sheep_baby": {
        "minecraft:ageable": {
          "duration": 1200,
          "feed_items": "wheat",
          "grow_up": {
            "event": "minecraft:ageable_grow_up",
            "target": "self"
          }
        },
        "minecraft:behavior.follow_parent": {
          "priority": 6,
          "speed_multiplier": 1.1
        },
        "minecraft:is_baby": {},
        "minecraft:scale": {
          "value": 0.5
        }
      },
      "minecraft:sheep_pink": {
        "minecraft:color": {
          "value": 6
        }
      },
      "minecraft:sheep_brown": {
        "minecraft:color": {
          "value": 12
        }
      },
      "minecraft:sheep_black": {
        "minecraft:color": {
          "value": 15
        }
      },
      "minecraft:sheep_dyeable": {
        "minecraft:is_dyeable": {
          "interact_text": "action.interact.dye"
        }
      },
      "minecraft:sheep_gray": {
        "minecraft:color": {
          "value": 8
        }
      },
      "minecraft:sheep_light_gray": {
        "minecraft:color": {
          "value": 7
        }
      },
      "minecraft:sheep_red": {
        "minecraft:color": {
          "value": 14
        }
      },
      "minecraft:sheep_sheared": {
        "minecraft:is_sheared": {}
      },
      "minecraft:sheep_white": {
        "minecraft:color": {
          "value": 0
        }
      }
    },
    "events": {
      "wololo": {
        "add": {
          "component_groups": [
            "minecraft:sheep_red"
          ]
        }
      },
      "minecraft:ageable_grow_up": {
        "add": {
          "component_groups": [
            "minecraft:sheep_adult",
            "minecraft:rideable_wooly",
            "minecraft:loot_wooly"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:sheep_baby"
          ]
        }
      },
      "minecraft:entity_born": {
        "add": {
          "component_groups": [
            "minecraft:sheep_baby",
            "minecraft:sheep_dyeable",
            "minecraft:rideable_sheared"
          ]
        },
        "remove": {}
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "randomize": [
              {
                "remove": {},
                "trigger": "spawn_adult",
                "weight": 95
              },
              {
                "remove": {},
                "trigger": "spawn_baby",
                "weight": 5
              }
            ]
          },
          {
            "randomize": [
              {
                "add": {
                  "component_groups": [
                    "minecraft:sheep_white"
                  ]
                },
                "weight": 81836
              },
              {
                "add": {
                  "component_groups": [
                    "minecraft:sheep_black"
                  ]
                },
                "weight": 5000
              },
              {
                "add": {
                  "component_groups": [
                    "minecraft:sheep_light_gray"
                  ]
                },
                "weight": 5000
              },
              {
                "add": {
                  "component_groups": [
                    "minecraft:sheep_gray"
                  ]
                },
                "weight": 5000
              },
              {
                "add": {
                  "component_groups": [
                    "minecraft:sheep_brown"
                  ]
                },
                "weight": 3000
              },
              {
                "add": {
                  "component_groups": [
                    "minecraft:sheep_pink"
                  ]
                },
                "weight": 164
              }
            ]
          }
        ]
      },
      "minecraft:on_sheared": {
        "add": {
          "component_groups": [
            "minecraft:sheep_sheared",
            "minecraft:rideable_sheared",
            "minecraft:loot_sheared"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:sheep_dyeable",
            "minecraft:loot_wooly"
          ]
        }
      },
      "minecraft:on_eat_block": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:sheep_dyeable"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:sheep_sheared"
              ]
            }
          },
          {
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "subject": "self",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [
                "minecraft:rideable_wooly",
                "minecraft:loot_wooly"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:loot_sheared"
              ]
            }
          }
        ]
      },
      "spawn_adult": {
        "add": {
          "component_groups": [
            "minecraft:sheep_adult",
            "minecraft:sheep_dyeable",
            "minecraft:rideable_wooly",
            "minecraft:loot_wooly"
          ]
        }
      },
      "spawn_baby": {
        "add": {
          "component_groups": [
            "minecraft:sheep_baby",
            "minecraft:sheep_dyeable",
            "minecraft:rideable_sheared"
          ]
        }
      }
    }
  }
}