Reading Loot Tables?
Mike-U5 opened this issue ยท 6 comments
So in the pre-1.12 versions of the mod required other mods to add support for JER in order to see their mob drops, because there was no reliable way to read them.
But now loot tables are a thing. Yet, the mod does not appear to actually read loot tables added by other mods. So wouldn't it be possible to display dropped loot based on those loot tables? This would presumably also fix #110.
is this ever getting added? It's extremely disabling and makes JER basically useless
The main issue here is that I would have to guess where to find the loot tables. So unless there is a way now to get all loot tables registered, I can't do much.
Right, not all loot tables locations are in the right place.
Perhaps a config option where players can point to loot tables that JER should read?
Mods like CraftTweaker can generate a complete list of loot tables. The trick would be figuring out which loot table is attached to which mob.
In 1.15, the loot table locations can be retrieved using Block#getLootTable and EntityType#getLootTable.
The LootTable can then be retrieved from the server LootTableManager using getLootTableFromLocation.
It would be great if the generated blocks could be parsed from the biome features as well.
I would help/create a PR, except I don't know enough about parsing the correct values from the retrieved LootTables/ConfiguredFeatures for display.