{
  "format_version": "1.18.0",
  "minecraft:entity": {
    "description": {
      "identifier": "darkgato:reindeer",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [
          "fly",
          "movement"
        ]
      },
      "animations": {
        "fly": "controller.animation.reindeer.fly",
        "movement": "controller.animation.reindeer.movement"
      }
    },
    "component_groups": {
      "add_sled": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "darkgato:sled",
              "single_use": true,
              "num_to_spawn": 1,
              "should_leash": true
            }
          ]
        }
      },
      "reindeer_flying": {
        "minecraft:movement": {
          "value": 1
        }
      },
      "reindeer_on_ground": {
        "minecraft:movement": {
          "value": 0.15
        }
      }
    },
    "components": {
      "minecraft:health": {
        "value": 20
      },
      "minecraft:collision_box": {
        "width": 1,
        "height": 1.8
      },
      "minecraft:movement": {
        "value": 0.15
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/reindeer.json"
      },
      "minecraft:nameable": {},
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 8
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "avoid_water": true,
        "avoid_damage_blocks": true,
        "avoid_portals": true
      },
      "minecraft:rideable": {
        "seat_count": 1,
        "crouching_skip_interact": true,
        "family_types": [
          "player"
        ],
        "interact_text": "action.interact.ride.reindeer",
        "pull_in_entities": true,
        "seats": {
          "position": [ 0, 1.1, -0.4 ]
        }
      },
      "minecraft:input_ground_controlled": {},
      "minecraft:leashable": {
        "soft_distance": 4,
        "hard_distance": 6,
        "max_distance": 15
      },
      "minecraft:type_family": {
        "family": [ "reindeer", "mob" ]
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:movement.generic": {
        "max_turn": 30
      },
      "minecraft:balloonable": {},
      "minecraft:healable": {
        "items": [
          {
            "item": "wheat",
            "heal_amount": 2
          },
          {
            "item": "sugar",
            "heal_amount": 1
          },
          {
            "item": "hay_block",
            "heal_amount": 20
          },
          {
            "item": "apple",
            "heal_amount": 3
          },
          {
            "item": "golden_carrot",
            "heal_amount": 4
          },
          {
            "item": "golden_apple",
            "heal_amount": 10
          },
          {
            "item": "appleEnchanted",
            "heal_amount": 10
          }
        ]
      },
      "minecraft:interact": {
        "interactions": {
          "on_interact": {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "has_equipment",
                  "domain": "hand",
                  "subject": "other",
                  "value": "darkgato:sled_spawn_egg"
                }
              ]
            },
            "event": "add_sled",
            "target": "self"
          },
          "use_item": true,
          "swing": true,
          "play_sounds": "block.bell.hit",
          "interact_text": "action.interact.add_sled"
        }
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": false
        }
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:physics": {},
      "minecraft:conditional_bandwidth_optimization": {}
    },
    "events": {
      "add_sled": {
        "add": {
          "component_groups": [
            "add_sled"
          ]
        }
      },
      "is_flying": {
        "add": {
          "component_groups": [
            "reindeer_flying"
          ]
        },
        "remove": {
          "component_groups": [
            "reindeer_on_ground"
          ]
        }
      },
      "on_ground": {
        "add": {
          "component_groups": [
            "reindeer_on_ground"
          ]
        },
        "remove": {
          "component_groups": [
            "reindeer_flying"
          ]
        }
      }
    }
  }
}