It still don't seem to work here is my code:
@Mod.EventBusSubscriber
public class HorseMeatDrops {
@SubscribeEvent
public void onLootTablesLoaded(LootTableLoadEvent event){
if (event.getName().equals(LootTableList.ENTITIES_HORSE)){
LootEntry rawEntry = new LootEntryTable(new ResourceLocation("eatahorse:raw_horse"), 1, 0,
new LootCondition[0], "eatahorse:raw_horse_entry");
LootPool rawPool = new LootPool(new LootEntry[] {rawEntry}, new LootCondition[0],
new RandomValueRange(1), new RandomValueRange(0, 1), "eatahorse:raw_horse_pool");
event.getTable().addPool(rawPool);
}
}
}
and here is the json file, the filepath to it is: resources/data/eatahorse/loot_tables/entities/raw_horse.json
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 2.0,
"max": 3.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "eatahorse:raw_horse"
}
]
}
]
}