TeamAOF / All-of-Fabric-7

Modpack containing the latest & best of Fabric on 1.20
41 stars 31 forks source link

KubeJS script to limit JewelryRPG loot #246

Closed nitrofenix closed 6 months ago

nitrofenix commented 6 months ago

JewelryRPG loot includes a number of bonus rolls per point of luck -- since the use of mods such as Zenith result in the player's luck stat being well above vanilla, these bonus rolls can take over a loot table and over-fill loot chests with rings & necklaces, potentially preventing other loot from appearing.

Changing the config file for the mod seems to have no effect, hence the script.

Example, before applying this fix: image

Same loot table after applying this fix: image

I've made the script itself fairly configurable, using values found in config\jewelry\loot_v2.json and limiting rolls for all JewelryRPG entries to no more than 4.