// priority 10

const entityBanLoot = ["minecraft:copper_ingot", "minecraft:gold_ingot", "minecraft:iron_ingot"]

let modifyAndRemoveEntityLoot = (/** @type {Internal.LootModificationEventJS} */ event) => {
  event.addLootTypeModifier([LootType.ENTITY]).removeLoot(Ingredient.of(entityBanLoot))
  event.addLootTypeModifier([LootType.ENTITY]).replaceLoot("porkchop", "tfc:food/pork")
  event.addLootTypeModifier([LootType.ENTITY]).replaceLoot("cooked_porkchop", "tfc:food/cooked_pork")
  event.addLootTypeModifier([LootType.ENTITY]).replaceLoot("leather", "tfc:large_raw_hide")
  event.addLootTypeModifier([LootType.ENTITY]).replaceLoot("mutton", "tfc:food/mutton")
  event.addLootTypeModifier([LootType.ENTITY]).replaceLoot("cooked_mutton", "tfc:food/cooked_mutton")

  event.addLootTypeModifier([LootType.ENTITY]).replaceLoot(`/^.*_wool/`, "tfc:wool")
  event.addEntityLootModifier("tfc:horse").addLoot("gregitas:equine_hoof")
  event.addEntityLootModifier("tfc:donkey").addLoot("gregitas:equine_hoof")
  event.addEntityLootModifier("tfc:mule").addLoot("gregitas:equine_hoof")
}
