{
  "format_version": "1.21.10",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:camel",
      "spawn_category": "creature",
      "is_spawnable": true,
      "is_summonable": true
    },
    "component_groups": {
      "minecraft:camel_saddled": {
        "minecraft:is_saddled": {
        },
        "minecraft:input_ground_controlled": {
        },
        "minecraft:dash": {
          "cooldown_time": 2.75,
          "horizontal_momentum": 20.0,
          "vertical_momentum": 0.6
        },
        "minecraft:behavior.player_ride_tamed": {
        }
      },
      "minecraft:camel_baby": {
        "minecraft:is_baby": {
        },
        "minecraft:scale": {
          "value": 0.45
        },
        "minecraft:ageable": {
          "duration": 1200,
          "feed_items": "cactus",
          "grow_up": {
            "event": "minecraft:ageable_grow_up",
            "target": "self"
          }
        },
        "minecraft:behavior.follow_parent": {
          "priority": 5,
          "speed_multiplier": 2.5
        }
      },
      "minecraft:camel_adult": {
        "minecraft:inventory": {
          "container_type": "horse"
        },
        "minecraft:equippable": {
          "slots": [
            {
              "slot": 0,
              "item": "saddle",
              "accepted_items": [ "saddle" ],
              "on_equip": {
                "event": "minecraft:camel_saddled"
              },
              "on_unequip": {
                "event": "minecraft:camel_unsaddled"
              }
            }
          ]
        },
        "minecraft:interact": {
          "interactions": [
            {
              "play_sounds": "saddle",
              "on_interact": {
                "filters": {
                  "all_of": [
                    { "test": "has_equipment", "subject": "self", "domain": "inventory", "operator": "not", "value": "saddle" },
                    { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "saddle" },
                    { "test": "is_family", "subject": "other", "value": "player" },
                    { "test": "is_sneak_held", "subject": "other", "value": false }
                  ]
                },
                "target": "self"
              },
              "equip_item_slot": "0",
              "interact_text": "action.interact.saddle"
            }
          ]
        },
        "minecraft:behavior.breed": {
          "priority": 2,
          "speed_multiplier": 1.0
        },
        "minecraft:experience_reward": {
          "on_bred": "Math.Random(1,7)",
          "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
        },
        "minecraft:breedable": {
          "require_tame": false,
          "breeds_with": [
            {
              "mate_type": "minecraft:camel",
              "baby_type": "minecraft:camel",
              "breed_event": {
                "event": "minecraft:entity_born",
                "target": "baby"
              }
            }
          ],
          "breed_items": [
            "cactus"
          ]
        },
        "minecraft:rideable": {
          "seat_count": 2,
          "crouching_skip_interact": true,
          "pull_in_entities": true,
          "family_types": [
            "player"
          ],
          "interact_text": "action.interact.ride.horse",
          "seats": [
            {
              "min_rider_count": 0,
              "max_rider_count": 2,
              "position": [ 0.0, 1.905, 0.5 ]
            },
            {
              "min_rider_count": 1,
              "max_rider_count": 2,
              "position": [ 0.0, 1.905, -0.5 ]
            }
          ]
        }
      },
      "minecraft:camel_standing": {
        "minecraft:pushable": {
          "is_pushable": true,
          "is_pushable_by_piston": true
        },
        "minecraft:collision_box": {
          "width": 1.7,
          "height": 2.375
        }
      },
      "minecraft:camel_sitting": {
        "minecraft:pushable": {
          "is_pushable": false,
          "is_pushable_by_piston": true
        },
        "minecraft:collision_box": {
          "width": 1.7,
          "height": 0.945
        }
      }
    },
    "components": {
      // This component prevents Camel from spawning in spaces it doesn't fit. Without it, the correct collision box wont be set until the sitting/standing events are triggered.
      "minecraft:collision_box": {
        "width": 1.7,
        "height": 2.375
      },
      "minecraft:is_tamed": {
      },
      "minecraft:healable": {
        "items": [
          {
            "item": "cactus",
            "heal_amount": 2
          }
        ]
      },
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0
      },
      "minecraft:balloonable": {
      },
      "minecraft:type_family": {
        "family": [ "camel", "mob" ]
      },
      "minecraft:is_hidden_when_invisible": {
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:nameable": {
      },
      "minecraft:health": {
        "value": 32
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "avoid_damage_blocks": true
      },
      "minecraft:movement.basic": {
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:movement": {
        "value": 0.09
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:physics": {
      },
      "minecraft:conditional_bandwidth_optimization": {
      },
      "minecraft:behavior.float": {
        "priority": 0,
        "sink_with_passengers": true
      },
      "minecraft:behavior.panic": {
        "priority": 1,
        "speed_multiplier": 4
      },
      "minecraft:behavior.tempt": {
        "priority": 3,
        "speed_multiplier": 2.5,
        "can_tempt_vertically": true,
        "items": [ "cactus" ]
      },
      "minecraft:behavior.random_look_around_and_sit": {
        "priority": 4,
        "continue_if_leashed": true,
        "continue_sitting_on_reload": true,
        "min_look_count": 2,
        "max_look_count": 5,
        "min_look_time": 80,
        "max_look_time": 100,
        "min_angle_of_view_horizontal": -30,
        "max_angle_of_view_horizontal": 30,
        "random_look_around_cooldown": 5,
        "probability": 0.001
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 2
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "target_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 8
      },
      "minecraft:variable_max_auto_step": {
        "base_value": 1.5625,
        "controlled_value": 1.5625,
        "jump_prevented_value": 0.5625
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 95,
            "trigger": "minecraft:spawn_adult"
          },
          {
            "weight": 5,
            "trigger": "minecraft:entity_born"
          }
        ]
      },
      "minecraft:spawn_adult": {
        "add": {
          "component_groups": [
            "minecraft:camel_adult",
            "minecraft:camel_standing"
          ]
        }
      },
      "minecraft:entity_born": {
        "add": {
          "component_groups": [
            "minecraft:camel_baby",
            "minecraft:camel_standing"
          ]
        }
      },
      "minecraft:ageable_grow_up": {
        "remove": {
          "component_groups": [
            "minecraft:camel_baby"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:camel_adult"
          ]
        }
      },
      "minecraft:camel_saddled": {
        "add": {
          "component_groups": [
            "minecraft:camel_saddled"
          ]
        }
      },
      "minecraft:camel_unsaddled": {
        "remove": {
          "component_groups": [
            "minecraft:camel_saddled"
          ]
        }
      },
      "minecraft:start_sitting": {
        "add": {
          "component_groups": [
            "minecraft:camel_sitting"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:camel_standing"
          ]
        }
      },
      "minecraft:stop_sitting": {
        "add": {
          "component_groups": [
            "minecraft:camel_standing"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:camel_sitting"
          ]
        }
      }
    }
  }
}
