import mods.cagedmobs.EntitiesManager;

    // To remove specific drop: removeLoot(itemToRemove);
    // cow.removeLoot(<item:minecraft:leather>);

    // To clear all existing drops: clearLoot();
    // cow.clearLoot();

    // To add a new drop, you have several options:
    // addLoot(item, chance) - 40% chance for dropping 1 gold ingot.
    // cow.addLoot(<item:minecraft:gold_ingot>, 0.4);

    // addLoot(item, chance, minDrop, maxDrop) - 20% chance for dropping from 1 to 3 pistons
    // cow.addLoot(<item:minecraft:piston>, 0.2, 1, 3);

    // Using cooking upgrade:
    // addLoot(item, cooked_item, chance, minDrop, maxDrop) - 30% chance for dropping 1 porkchop (cooked porkchop when cooking upgrade is applied)
    // cow.addLoot(<item:minecraft:porkchop>,<item:minecraft:cooked_porkchop>, 0.3, 1, 1);

    // Using lightning or/and arrow upgrades
    // addLoot(item, chance, minDrop, maxDrop, ifLightning, ifArrow) - 10% chance for dropping 1 creeper head, when lightning upgrade is applied
    // cow.addLoot(<item:minecraft:creeper_head>, 0.1, 1, 1, true, false);

    // Using all upgrades + color
    // To disable cooking upgrade use <item:minecraft:air> instead of a normal item.
    // Color argument is used for mobs that use "Color" nbt tag, currently only sheep use it. Set it to -1 for other mobs.
    // addLoot(item, cooked_item, chance, minDrop, maxDrop, ifLightning, ifArrow, color) - 80% chance for dropping from 1 to 3 papers, without any upgrades
    // cow.addLoot(<item:minecraft:paper>,<item:minecraft:air>, 0.8, 1, 3, false, false, -1);


val entities = <recipetype:cagedmobs:entity_data>;

    val cow = entities.getEntity( "cagedmobs:entities/cow");
    cow.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val blaze = entities.getEntity( "cagedmobs:entities/blaze");
    blaze.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    blaze.addLoot(<item:tconstruct:blaze_head>, 0.05, 1, 3, true, false);

    val cave_spider = entities.getEntity( "cagedmobs:entities/cave_spider");
    cave_spider.addLoot(<item:minecraft:cobweb>, 0.1);
    cave_spider.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    cave_spider.addLoot(<item:tconstruct:cave_spider_head>, 0.05, 1, 3, true, false);

    val chicken = entities.getEntity( "cagedmobs:entities/chicken");
    chicken.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val creeper = entities.getEntity( "cagedmobs:entities/creeper");
    creeper.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val drowned = entities.getEntity( "cagedmobs:entities/drowned");
    drowned.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    drowned.addLoot(<item:tconstruct:drowned_head>, 0.05, 1, 3, true, false);

    val enderman = entities.getEntity( "cagedmobs:entities/enderman");
    enderman.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    enderman.addLoot(<item:tconstruct:enderman_head>, 0.05, 1, 3, true, false);

    val endermite = entities.getEntity( "cagedmobs:entities/endermite");
    endermite.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val evoker = entities.getEntity( "cagedmobs:entities/evoker");
    evoker.removeLoot(<item:minecraft:totem_of_undying>);
    evoker.addLoot(<item:minecraft:totem_of_undying>, 0.02);
    evoker.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val ghast = entities.getEntity( "cagedmobs:entities/ghast");
    ghast.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val guardian = entities.getEntity( "cagedmobs:entities/guardian");
    guardian.addLoot(<item:cagedmobs:sponge_fragment>, 0.1);
    guardian.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val hoglin = entities.getEntity( "cagedmobs:entities/hoglin");
    hoglin.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val husk = entities.getEntity( "cagedmobs:entities/husk");
    husk.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    husk.addLoot(<item:tconstruct:husk_head>, 0.05, 1, 3, true, false);

    val iron_golem = entities.getEntity( "cagedmobs:entities/iron_golem");
    iron_golem.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val llama = entities.getEntity( "cagedmobs:entities/llama");
    llama.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val magma_cube = entities.getEntity( "cagedmobs:entities/magma_cube");
    magma_cube.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val mooshroom = entities.getEntity( "cagedmobs:entities/mooshroom");
    mooshroom.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val mule = entities.getEntity( "cagedmobs:entities/mule");
    mule.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val phantom = entities.getEntity( "cagedmobs:entities/phantom");
    phantom.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val pig = entities.getEntity( "cagedmobs:entities/pig");
    pig.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val polar_bear = entities.getEntity( "cagedmobs:entities/polar_bear");
    polar_bear.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val ravager = entities.getEntity( "cagedmobs:entities/ravager");
    ravager.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val shulker = entities.getEntity( "cagedmobs:entities/shulker");
    shulker.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val skeleton = entities.getEntity( "cagedmobs:entities/skeleton");
    skeleton.removeLoot(<item:minecraft:arrow>);
    skeleton.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    skeleton.addLoot(<item:minecraft:skeleton_skull>, 0.05, 1, 3, true, false);

    val skeleton_horse = entities.getEntity( "cagedmobs:entities/skeleton_horse");
    skeleton_horse.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val slime = entities.getEntity( "cagedmobs:entities/slime");
    slime.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val spider = entities.getEntity( "cagedmobs:entities/spider");
    spider.addLoot(<item:minecraft:cobweb>, 0.1);
    spider.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    spider.addLoot(<item:tconstruct:spider_head>, 0.05, 1, 3, true, false);

    val squid = entities.getEntity( "cagedmobs:entities/squid");
    squid.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val stray = entities.getEntity( "cagedmobs:entities/stray");
    stray.removeLoot(<item:minecraft:arrow>);
    stray.removeLoot(<item:minecraft:tipped_arrow>);
    stray.removeLoot(<item:minecraft:skeleton_skull>);
    stray.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    stray.addLoot(<item:tconstruct:stray_head>, 0.05, 1, 3, true, false);

    val strider = entities.getEntity( "cagedmobs:entities/strider");
    strider.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val turtle = entities.getEntity( "cagedmobs:entities/turtle");
    turtle.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val vindicator = entities.getEntity( "cagedmobs:entities/vindicator");
    vindicator.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val witch = entities.getEntity( "cagedmobs:entities/witch");
    witch.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val wither_skeleton = entities.getEntity( "cagedmobs:entities/wither_skeleton");
    wither_skeleton.addLoot(<item:tconstruct:necrotic_bone>, 0.20, 1, 3);
    wither_skeleton.addLoot(<item:wstweaks:fragment>, 0.1);
    wither_skeleton.removeLoot(<item:minecraft:wither_skeleton_skull>);
    wither_skeleton.removeLoot(<item:minecraft:bone>);
    wither_skeleton.addLoot(<item:minecraft:wither_skeleton_skull>, 0.05, 1, 1, true, false);
    wither_skeleton.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val zoglin = entities.getEntity( "cagedmobs:entities/zoglin");
    zoglin.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val piglin_brute = entities.getEntity( "cagedmobs:entities/piglin_brute");
    piglin_brute.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val piglin = entities.getEntity( "cagedmobs:entities/piglin");
    piglin.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val pillager = entities.getEntity( "cagedmobs:entities/pillager");
    pillager.removeLoot(<item:minecraft:arrow>);
    pillager.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val vex = entities.getEntity( "cagedmobs:entities/vex");
    vex.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val illusioner = entities.getEntity( "cagedmobs:entities/illusioner");
    illusioner.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val foxhound = entities.getEntity( "quark:entities/foxhound");
    foxhound.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
   
    val forgotten = entities.getEntity( "quark:entities/forgotten");
    forgotten.removeLoot(<item:minecraft:arrow>);
    forgotten.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val zombie = entities.getEntity( "cagedmobs:entities/zombie");
    zombie.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);
    zombie.addLoot(<item:minecraft:zombie_head>, 0.05, 1, 3, true, false);

    val zombie_villager = entities.getEntity( "cagedmobs:entities/zombie_villager");
    zombie_villager.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    val zombified_piglin = entities.getEntity( "cagedmobs:entities/zombified_piglin");
    zombified_piglin.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    //val bazalz = entities.getEntity( "thermal:entities/basalz");
    //bazalz.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    //val blitz = entities.getEntity( "thermal:entities/blitz");
    //blitz.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    //val blizz = entities.getEntity( "thermal:entities/blizz");
    //blizz.addLoot(<item:miniutilities:experience_pearl>, 0.2, 1, 3);

    /* Bosses */

    val wither = entities.getEntity("cagedmobs:bosses/wither");
    wither.removeLoot(<item:cagedmobs:nether_star_fragment>);
    wither.addLoot(<item:cagedmobs:nether_star_fragment>, 0.1);
    wither.addLoot(<item:miniutilities:experience_pearl>, 1.0, 1, 16);

    val ender_dragon = entities.getEntity("cagedmobs:bosses/ender_dragon");
    ender_dragon.removeLoot(<item:cagedmobs:dragon_scale>);
    //ender_dragon.removeLoot(<item:quark:dragon_scale>);
    ender_dragon.addLoot(<item:tconstruct:dragon_scale>, 0.1, 1, 1, true, false);
    ender_dragon.addLoot(<item:miniutilities:experience_pearl>, 1.0, 1, 16);

    val elder_guardian = entities.getEntity("cagedmobs:bosses/elder_guardian");
    elder_guardian.addLoot(<item:minecraft:heart_of_the_sea>, 0.1);
    elder_guardian.addLoot(<item:miniutilities:experience_pearl>, 1.0, 1, 16);

    
    