Skip to content

Chanced output (and input maybe?) option to output exactly one item among all chanced outputs. #3186

@WithersChat

Description

@WithersChat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.20.1type: featureNew feature or request bundled for a 0.X.0 Update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions