-
Notifications
You must be signed in to change notification settings - Fork 353
Description
Cross-mod Integration
No response
Minecraft Version
1.20.1 Forge
Feature Description
Currently, the XOR chance logic operator rolls every chanced output independently and gives you the first, which leads to chance bias towards the first outputs not reflected in JEI, as well as doesn't allow to guarantee an output.
The simple solution would be to have a separate chance logic that corrects for this (or to change XOR), in such a way that the success chance of the first item is subtracted from the 10000 "max chance value" of the second, and repeating until one output is returned or you reach the end of chanced outputs.
The more complex, but more modular solution would be to have a new type of chanced ingredient with a "weight" value, allowing to define a pseudo loot table in the recipe, and then in some way define the number of rolls in this loot table (or have it set to 1 if that's too complicated to implement). The number of different items displayed in XEI would still be limited by the room in the recipe type's output side, but this would allow for more modularity than now even with that limitation.
While my preference leans towards the latter, I would consider either option to be resolving the issue.