In 1.12.x LootTableLoadEvent appears to be fired for all loot tables except those added into world/data. ForgeHooks.loadLootTable receives flag custom to determine that, where in 1.12.x it changed depending on which method used it - one was for world loot tables, and one was loading loot tables from vanilla and mods.
But in 1.13.x that custom flag is determined by resource pack name, and that comes from resource pack named Default is considered "custom", even if it's vanilla default loot table. On discord I got an answer that it should match 1.12.x.
To match the 1.12 behavior, I think it would need to get access to ResourcePackType, but I don't see any reasonable path to that data from IResource or IResourceManager.
In 1.12.x
LootTableLoadEventappears to be fired for all loot tables except those added intoworld/data.ForgeHooks.loadLootTablereceives flagcustomto determine that, where in 1.12.x it changed depending on which method used it - one was for world loot tables, and one was loading loot tables from vanilla and mods.But in 1.13.x that custom flag is determined by resource pack name, and that comes from resource pack named
Defaultis considered "custom", even if it's vanilla default loot table. On discord I got an answer that it should match 1.12.x.To match the 1.12 behavior, I think it would need to get access to
ResourcePackType, but I don't see any reasonable path to that data fromIResourceorIResourceManager.