LootJS.modifiers((event) => {
  event.addBlockLootModifier("minecraft:gravel").removeLoot("twigs:pebble");
  event.addLootTypeModifier(LootType.CHEST).removeLoot("irons_spellbooks:concentration_amulet");
  event.addLootTypeModifier(LootType.ENTITY).removeLoot("artifacts:everlasting_beef");
  event.addLootTypeModifier(LootType.ENTITY).removeLoot("artifacts:eternal_steak");
  event.addLootTypeModifier(LootType.CHEST).removeLoot("irons_spellbooks:concentration_amulet");
  event.addBlockLootModifier("minecraft:gravel").addAlternativesLoot(
    LootEntry.of("overgeared:knappable_rock").when((c) => c.randomChance(0.2))
  );

  event.addEntityLootModifier([
    "mowziesmobs:ferrous_wroughtnaut",
    "cataclysm:maledictus",
    "cataclysm:ignis",
    "cataclysm:the_leviathan",
    "cataclysm:ancient_remnant",
    "mowziesmobs:umvuthi",
    "mowziesmobs:frostmaw",
    "minecraft:wither",
    "cataclysm:netherite_monstrosity",
    "irons_spellbooks:fire_boss",
    "cataclysm:scylla"
  ])
    .addLoot("minecraft:echo_shard").randomChance(1)
    .addLoot("minecraft:echo_shard").randomChance(1)
    .addLoot("minecraft:echo_shard").randomChance(1)
    .addLoot("minecraft:echo_shard").randomChance(0.5)
    .addLoot("minecraft:echo_shard").randomChance(0.5);

  event.addEntityLootModifier([
    "cataclysm:aptrgangr",
    "cataclysm:clawdian",
    "cataclysm:kobolediator",
    "eeeabsmobs:corpse_warlock",
    "cataclysm:amethyst_crab"
  ])
    .addLoot("minecraft:echo_shard").randomChance(1)
    .addLoot("minecraft:echo_shard").randomChance(1)
    .addLoot("minecraft:echo_shard").randomChance(0.5);
  
  event.addEntityLootModifier("alexsmobs:skreecher")
    .addLoot("minecraft:echo_shard");

  event.addEntityLootModifier("quark:wraith")
    .addLoot("minecraft:ghast_tear");

  event.addEntityLootModifier("netherexp:apparition")
    .addLoot("minecraft:ghast_tear")
    .addLoot("minecraft:ghast_tear");

  event.addLootTypeModifier(LootType.ENTITY).removeLoot("irons_spellbooks:blaze_spell_book");
  event.addLootTypeModifier(LootType.ENTITY).removeLoot("kubejs:zombie_claw");

  event.addLootTypeModifier(LootType.CHEST)
    .removeLoot("cataclysm:ignitium_upgrade_smithing_template")
    .removeLoot("cataclysm:cursium_upgrade_smithing_template");
  event.addLootTypeModifier(LootType.ENTITY)
    .removeLoot("cataclysm:ignitium_upgrade_smithing_template")
    .removeLoot("cataclysm:cursium_upgrade_smithing_template");

  event.addLootTypeModifier(LootType.CHEST)
    .removeLoot("artifacts:everlasting_beef")
    .removeLoot("artifacts:eternal_steak")
    .removeLoot("artifacts:onion_ring")
    .removeLoot("artifacts:whoopee_cushion")
    .removeLoot("artifacts:running_shoes")
    .removeLoot("artifacts:night_vision_goggles")
    .removeLoot("artifacts:snorkel")
    .removeLoot("artifacts:plastic_drinking_hat")
    .removeLoot("artifacts:novelty_drinking_hat")
    .removeLoot("artifacts:pickaxe_heater")
    .removeLoot("artifacts:villager_hat")
    .removeLoot("artifacts:feral_claws")
    .removeLoot("artifacts:power_glove")
    .removeLoot("artifacts:fire_gauntlet")
    .removeLoot("artifacts:vampiric_glove")
    .removeLoot("artifacts:crystal_heart");

  event.addEntityLootModifier("minecraft:goat")
    .addLoot("minecraft:bone").randomChance(1)
    .addLoot("minecraft:bone").randomChance(0.5)
    .addLoot("fleshz:hide").randomChance(1)
    .addLoot("fleshz:hide").randomChance(0.5);

  event.addEntityLootModifier("minecraft:hoglin")
    .addLoot("minecraft:bone").randomChance(1)
    .addLoot("minecraft:bone").randomChance(1)
    .addLoot("minecraft:bone").randomChance(0.5)
    .addLoot("mynethersdelight:hoglin_loin")
    .addLoot("mynethersdelight:hoglin_loin")
    .addLoot("mynethersdelight:hoglin_loin")
    .addLoot("mynethersdelight:hoglin_loin").randomChance(0.5)
    .addLoot("mynethersdelight:hoglin_loin").randomChance(0.3)
    .addLoot("fleshz:hide").randomChance(1)
    .addLoot("fleshz:hide").randomChance(1)
    .addLoot("fleshz:hide").randomChance(1)
    .addLoot("fleshz:hide").randomChance(0.5);

  event.addEntityLootModifier("alexsmobs:moose")
    .addLoot("minecraft:bone").randomChance(1);

  event.addEntityLootModifier("cataclysm:clawdian")
    .addLoot("upgrade_aquatic:thrasher_tooth").randomChance(1)
    .addLoot("upgrade_aquatic:thrasher_tooth").randomChance(1)
    .addLoot("upgrade_aquatic:thrasher_tooth").randomChance(0.5);
});