Description | All loot pools injected into loot tables cannot be modified. This occurs because the loot table returned from LootTableManager#getLootTableFromLocation() will always be frozen, as will its loot pools. This means mods like LootTweaker (https://minecraft.curseforge.com/projects/loottweaker) are unable to modify the injected loot.
Botania avoids the issue by using LootTableEntry to reference its inject tables (https://github.com/Vazkii/Botania/blob/master/src/main/java/vazkii/botania/common/core/loot/LootHandler.java), instead of calling LootTableManager#getLootTableFromLocation(). Alternatively the pools could be copied before adding them, as the copies would not be frozen. The latter solution does require some reflection though.
|
---|