{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:mule",
      "is_summonable": true,
      "is_spawnable": true,
      "spawn_category": "creature"
    },
    "components": {
      "minecraft:balloonable": {},
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "look_distance": 6,
        "priority": 7
      },
      "minecraft:behavior.panic": {
        "priority": 1,
        "speed_multiplier": 1.2
      },
      "minecraft:behavior.random_look_around": {
        "priority": 8
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.7
      },
      "minecraft:behavior.tempt": {
        "items": [
          "golden_apple",
          "appleEnchanted",
          "golden_carrot"
        ],
        "priority": 5,
        "speed_multiplier": 1.2
      },
      "minecraft:breathable": {
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:collision_box": {
        "height": 1.6,
        "width": 1.4
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:healable": {
        "items": [
          {
            "heal_amount": 2,
            "item": "wheat"
          },
          {
            "heal_amount": 1,
            "item": "sugar"
          },
          {
            "heal_amount": 20,
            "item": "hay_block"
          },
          {
            "heal_amount": 3,
            "item": "apple"
          },
          {
            "heal_amount": 4,
            "item": "golden_carrot"
          },
          {
            "heal_amount": 10,
            "item": "golden_apple"
          },
          {
            "heal_amount": 10,
            "item": "appleEnchanted"
          }
        ]
      },
      "minecraft:health": {
        "value": {
          "range_max": 30,
          "range_min": 15
        }
      },
      "minecraft:horse.jump_strength": {
        "value": 0.5
      },
      "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",
            "soft_distance": 4.0
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.175
      },
      "minecraft:movement.basic": {},
      "minecraft:nameable": {},
      "minecraft:navigation.walk": {
        "avoid_damage_blocks": true,
        "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": [
          "mule",
          "mob"
        ]
      }
    },
    "component_groups": {
      "minecraft:mule_adult": {
        "minecraft:behavior.run_around_like_crazy": {
          "priority": 1,
          "speed_multiplier": 1.2
        },
        "minecraft:experience_reward": {
          "on_death": {
            "expression": "query.last_hit_by_player ? Math.Random(1,3) : 0",
            "version": 12
          }
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/horse.json"
        }
      },
      "minecraft:mule_baby": {
        "minecraft:ageable": {
          "duration": 1200,
          "feed_items": [
            {
              "growth": 0.016667,
              "item": "wheat"
            },
            {
              "growth": 0.025,
              "item": "sugar"
            },
            {
              "growth": 0.15,
              "item": "hay_block"
            },
            {
              "growth": 0.05,
              "item": "apple"
            },
            {
              "growth": 0.05,
              "item": "golden_carrot"
            },
            {
              "growth": 0.2,
              "item": "golden_apple"
            },
            {
              "growth": 0.2,
              "item": "appleEnchanted"
            }
          ],
          "grow_up": {
            "event": "minecraft:ageable_grow_up",
            "target": "self"
          }
        },
        "minecraft:behavior.follow_parent": {
          "priority": 4,
          "speed_multiplier": 1.0
        },
        "minecraft:is_baby": {},
        "minecraft:scale_by_age": {
          "end_scale": 1.0,
          "start_scale": 0.5
        }
      },
      "minecraft:mule_chested": {
        "minecraft:interact": {
          "interactions": [
            {
              "equip_item_slot": "0",
              "play_sounds": "armor.equip_generic",
              "interact_text": "action.interact.saddle",
              "on_interact": {
                "filters": {
                  "all_of": [
                    {
                      "domain": "inventory",
                      "operator": "not",
                      "test": "has_equipment",
                      "subject": "self",
                      "value": "saddle"
                    },
                    {
                      "domain": "hand",
                      "subject": "other",
                      "test": "has_equipment",
                      "value": "saddle"
                    },
                    {
                      "subject": "other",
                      "test": "is_family",
                      "value": "player"
                    },
                    {
                      "subject": "other",
                      "test": "is_sneak_held",
                      "value": false
                    }
                  ]
                },
                "target": "self"
              },
              "swing": false
            }
          ]
        },
        "minecraft:is_chested": {}
      },
      "minecraft:mule_wild": {
        "minecraft:behavior.mount_pathing": {
          "priority": 2,
          "target_dist": 0.0,
          "speed_multiplier": 1.5,
          "track_target": true
        },
        "minecraft:rideable": {
          "family_types": [
            "player",
            "zombie"
          ],
          "interact_text": "action.interact.mount",
          "seat_count": 1,
          "seats": {
            "position": [
              0.0,
              0.975,
              -0.2
            ]
          }
        },
        "minecraft:tamemount": {
          "auto_reject_items": [
            {
              "item": "horsearmorleather"
            },
            {
              "item": "horsearmoriron"
            },
            {
              "item": "horsearmorgold"
            },
            {
              "item": "horsearmordiamond"
            },
            {
              "item": "saddle"
            }
          ],
          "max_temper": 100,
          "ride_text": "action.interact.mount",
          "feed_items": [
            {
              "item": "wheat",
              "temper_mod": 3
            },
            {
              "item": "sugar",
              "temper_mod": 3
            },
            {
              "item": "apple",
              "temper_mod": 3
            },
            {
              "item": "golden_carrot",
              "temper_mod": 5
            },
            {
              "item": "golden_apple",
              "temper_mod": 10
            },
            {
              "item": "appleEnchanted",
              "temper_mod": 10
            }
          ],
          "feed_text": "action.interact.feed",
          "min_temper": 0,
          "tame_event": {
            "event": "minecraft:on_tame",
            "target": "self"
          }
        }
      },
      "minecraft:mule_saddled": {
        "minecraft:behavior.player_ride_tamed": {},
        "minecraft:can_power_jump": {},
        "minecraft:input_ground_controlled": {},
        "minecraft:is_saddled": {}
      },
      "minecraft:mule_tamed": {
        "minecraft:equippable": {
          "slots": [
            {
              "accepted_items": [
                "saddle"
              ],
              "item": "saddle",
              "on_equip": {
                "event": "minecraft:mule_saddled"
              },
              "on_unequip": {
                "event": "minecraft:mule_unsaddled"
              },
              "slot": 0
            }
          ]
        },
        "minecraft:inventory": {
          "container_type": "horse",
          "inventory_size": 16
        },
        "minecraft:is_tamed": {},
        "minecraft:rideable": {
          "crouching_skip_interact": true,
          "family_types": [
            "player"
          ],
          "interact_text": "action.interact.ride.horse",
          "seat_count": 1,
          "seats": {
            "position": [
              0.0,
              0.975,
              -0.2
            ]
          }
        }
      },
      "minecraft:mule_unchested": {
        "minecraft:interact": {
          "interactions": [
            {
              "interact_text": "action.interact.attachchest",
              "on_interact": {
                "event": "minecraft:on_chest",
                "filters": {
                  "all_of": [
                    {
                      "domain": "hand",
                      "subject": "other",
                      "test": "has_equipment",
                      "value": "chest"
                    },
                    {
                      "subject": "other",
                      "test": "is_family",
                      "value": "player"
                    },
                    {
                      "subject": "other",
                      "test": "is_sneak_held",
                      "value": false
                    }
                  ]
                },
                "target": "self"
              },
              "play_sounds": "armor.equip_generic",
              "swing": false,
              "use_item": true
            },
            {
              "equip_item_slot": "0",
              "play_sounds": "armor.equip_generic",
              "interact_text": "action.interact.saddle",
              "on_interact": {
                "filters": {
                  "all_of": [
                    {
                      "domain": "inventory",
                      "operator": "not",
                      "test": "has_equipment",
                      "subject": "self",
                      "value": "saddle"
                    },
                    {
                      "domain": "hand",
                      "subject": "other",
                      "test": "has_equipment",
                      "value": "saddle"
                    },
                    {
                      "subject": "other",
                      "test": "is_family",
                      "value": "player"
                    },
                    {
                      "subject": "other",
                      "test": "is_sneak_held",
                      "value": false
                    }
                  ]
                },
                "target": "self"
              },
              "swing": false
            }
          ]
        }
      }
    },
    "events": {
      "minecraft:ageable_grow_up": {
        "add": {
          "component_groups": [
            "minecraft:mule_adult",
            "minecraft:mule_wild"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:mule_baby"
          ]
        }
      },
      "minecraft:on_chest": {
        "add": {
          "component_groups": [
            "minecraft:mule_chested"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:mule_unchested"
          ]
        }
      },
      "minecraft:mule_saddled": {
        "add": {
          "component_groups": [
            "minecraft:mule_saddled"
          ]
        }
      },
      "minecraft:entity_born": {
        "add": {
          "component_groups": [
            "minecraft:mule_baby"
          ]
        }
      },
      "minecraft:mule_unsaddled": {
        "remove": {
          "component_groups": [
            "minecraft:mule_saddled"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "add": {
              "component_groups": [
                "minecraft:mule_adult",
                "minecraft:mule_wild"
              ]
            },
            "weight": 80
          },
          {
            "add": {
              "component_groups": [
                "minecraft:mule_baby"
              ]
            },
            "weight": 20
          }
        ]
      },
      "minecraft:on_tame": {
        "add": {
          "component_groups": [
            "minecraft:mule_tamed",
            "minecraft:mule_unchested"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:mule_wild"
          ]
        }
      }
    }
  }
}