let hitboxes = {
    'minecraft:allay': {'width': 0.35, 'height': 0.6},
    'minecraft:armadillo': {'width': 0.7, 'height': 0.65},
    'minecraft:armor_stand': {'width': 0.5, 'height': 1.975},
    'minecraft:arrow': {'width': 0.25, 'height': 0.25},
    'minecraft:axolotl': {'width': 0.75, 'height': 0.42},
    'minecraft:bat': {'width': 0.5, 'height': 0.9},
    'minecraft:bee': {'width': 0.55, 'height': 0.5},
    'minecraft:blaze': {'width': 0.5, 'height': 1.8},
    'minecraft:boat': {'width': 1.4, 'height': 0.455},
    'minecraft:bogged': {'width': 0.6, 'height': 1.9},
    'minecraft:breeze': {'width': 0.6, 'height': 1.77},
    'minecraft:breeze_wind_charge_projectile': {'width': 0.3125, 'height': 0.3125},
    'minecraft:camel': {'width': 1.7, 'height': 2.375},
    'minecraft:cat': {'width': 0.6, 'height': 0.7},
    'minecraft:cave_spider': {'width': 0.7, 'height': 0.5},
    'minecraft:chest_boat': {'width': 1.4, 'height': 0.455},
    'minecraft:chest_minecart': {'width': 0.98, 'height': 0.7},
    'minecraft:chicken': {'width': 0.6, 'height': 0.8},
    'minecraft:command_block_minecart': {'width': 0.98, 'height': 0.7},
    'minecraft:cow': {'width': 0.9, 'height': 1.3},
    'minecraft:creeper': {'width': 0.6, 'height': 1.8},
    'minecraft:dolphin': {'width': 0.9, 'height': 0.6},
    'minecraft:donkey': {'width': 1.4, 'height': 1.6},
    'minecraft:dragon_fireball': {'width': 0.31, 'height': 0.31},
    'minecraft:drowned': {'width': 0.6, 'height': 1.9},
    'minecraft:egg': {'width': 0.25, 'height': 0.25},
    'minecraft:elder_guardian': {'width': 1.99, 'height': 1.99},
    'minecraft:enderman': {'width': 0.6, 'height': 2.9},
    'minecraft:endermite': {'width': 0.4, 'height': 0.3},
    'minecraft:ender_crystal': {'width': 2, 'height': 2},
    'minecraft:ender_dragon': {'width': 13, 'height': 4},
    'minecraft:ender_pearl': {'width': 0.25, 'height': 0.25},
    'minecraft:evocation_illager': {'width': 0.6, 'height': 1.9},
    'minecraft:eye_of_ender_signal': {'width': 0.25, 'height': 0.25},
    'minecraft:fireball': {'width': 1.0, 'height': 1.0},
    'minecraft:fireworks_rocket': {'width': 0.25, 'height': 0.25},
    'minecraft:cod': {'width': 0.6, 'height': 0.3},
    'minecraft:fishing_hook': {'width': 0.15, 'height': 0.15},
    'minecraft:fox': {'width': 0.6, 'height': 0.7},
    'minecraft:frog': {'width': 0.5, 'height': 0.55},
    'minecraft:ghast': {'width': 4.02, 'height': 4},
    'minecraft:glow_squid': {'width': 0.95, 'height': 0.95},
    'minecraft:goat': {'width': 0.9, 'height': 1.3},
    'minecraft:guardian': {'width': 0.85, 'height': 0.85},
    'minecraft:hoglin': {'width': 0.85, 'height': 0.85},
    'minecraft:hopper_minecart': {'width': 0.98, 'height': 0.7},
    'minecraft:horse': {'width': 1.4, 'height': 1.6},
    'minecraft:husk': {'width': 0.6, 'height': 1.9},
    'minecraft:iron_golem': {'width': 1.4, 'height': 2.9},
    'minecraft:lingering_potion': {'width': 0.25, 'height': 0.25},
    'minecraft:llama': {'width': 0.9, 'height': 1.87},
    'minecraft:llama_spit': {'width': 0.31, 'height': 0.31},
    'minecraft:magma_cube': {'width': 2.08, 'height': 2.08},
    'minecraft:minecart': {'width': 0.98, 'height': 0.7},
    'minecraft:mooshroom': {'width': 0.9, 'height': 1.3},
    'minecraft:mule': {'width': 1.4, 'height': 1.6},
    'minecraft:npc': {'width': 0.6, 'height': 2.1},
    'minecraft:ocelot': {'width': 0.6, 'height': 0.7},
    'minecraft:panda': {'width': 1.3, 'height': 1.25},
    'minecraft:parrot': {'width': 0.5, 'height': 1},
    'minecraft:phantom': {'width': 0.9, 'height': 0.5},
    'minecraft:pig': {'width': 0.9, 'height': 0.9},
    'minecraft:piglin': {'width': 0.6, 'height': 1.9},
    'minecraft:piglin_brute': {'width': 0.6, 'height': 1.9},
    'minecraft:pillager': {'width': 0.6, 'height': 1.9},
    'minecraft:player': {'width': 0.6, 'height': 1.8},
    'minecraft:polar_bear': {'width': 1.4, 'height': 1.4},
    'minecraft:pufferfish': {'width': 0.8, 'height': 0.8},
    'minecraft:rabbit': {'width': 0.67, 'height': 0.67},
    'minecraft:ravager': {'height': 2.2, 'width': 1.95},
    'minecraft:salmon': {'width': 0.5, 'height': 0.5},
    'minecraft:sheep': {'width': 0.9, 'height': 1.3},
    'minecraft:shulker_bullet': {'width': 0.625, 'height': 0.625},
    'minecraft:silverfish': {'width': 0.4, 'height': 0.3},
    'minecraft:skeleton': {'width': 0.6, 'height': 1.9},
    'minecraft:skeleton_horse': {'width': 1.4, 'height': 1.6},
    'minecraft:slime': {'width': 2.08, 'height': 2.08},
    'minecraft:small_fireball': {'width': 0.31, 'height': 0.31},
    'minecraft:sniffer': {'width': 1.9, 'height': 1.75},
    'minecraft:snowball': {'width': 0.25, 'height': 0.25},
    'minecraft:snow_golem': {'width': 0.4, 'height': 1.8},
    'minecraft:spider': {'width': 1.4, 'height': 0.9},
    'minecraft:splash_potion': {'width': 0.25, 'height': 0.25},
    'minecraft:squid': {'width': 0.95, 'height': 0.95},
    'minecraft:stray': {'width': 0.6, 'height': 1.9},
    'minecraft:strider': {'width': 0.9, 'height': 1.7},
    'minecraft:tadpole': {'width': 0.8, 'height': 0.6},
    'minecraft:thrown_trident': {'width': 0.25, 'height': 0.35},
    'minecraft:tnt': {'width': 0.98, 'height': 0.98},
    'minecraft:tnt_minecart': {'width': 0.98, 'height': 0.7},
    'minecraft:trader_llama': {'width': 0.9, 'height': 1.87},
    'minecraft:tripod_camera': {'width': 0.75, 'height': 1.8},
    'minecraft:tropicalfish': {'width': 0.4, 'height': 0.4},
    'minecraft:turtle': {'width': 0.6, 'height': 0.2},
    'minecraft:vex': {'width': 0.4, 'height': 0.8},
    'minecraft:villager': {'width': 0.6, 'height': 1.9},
    'minecraft:villager_v2': {'width': 0.6, 'height': 1.9},
    'minecraft:vindicator': {'width': 0.6, 'height': 1.9},
    'minecraft:wandering_trader': {'width': 0.6, 'height': 1.9},
    'minecraft:warden': {'width': 0.9, 'height': 2.9},
    'minecraft:wind_charge_projectile': {'width': 0.3125, 'height': 0.3125},
    'minecraft:witch': {'width': 0.6, 'height': 1.9},
    'minecraft:wither': {'width': 1, 'height': 3},
    'minecraft:wither_skeleton': {'width': 0.72, 'height': 2.01},
    'minecraft:wither_skull': {'width': 0.15, 'height': 0.15},
    'minecraft:wither_skull_dangerous': {'width': 0.15, 'height': 0.15},
    'minecraft:wolf': {'width': 0.6, 'height': 0.8},
    'minecraft:xp_bottle': {'width': 0.25, 'height': 0.25},
    'minecraft:xp_orb': {'width': 0.25, 'height': 0.25},
    'minecraft:zoglin': {'width': 0.85, 'height': 0.85},
    'minecraft:zombie': {'width': 0.6, 'height': 1.9},
    'minecraft:zombie_horse': {'width': 1.4, 'height': 1.6},
    'minecraft:zombie_pigman': {'width': 0.6, 'height': 1.9},
    'minecraft:zombie_villager': {'width': 0.6, 'height': 1.9},
    'minecraft:zombie_villager_v2': {'width': 0.6, 'height': 1.9}
}


export function getHeight(entity) {
    try {
        return hitboxes[entity.typeId]["height"];
    } catch (e) {
        return 1;
    }
}