[enhancement] Display the odds in JEI of getting a drop from sieving in correct and more direct way
Gotkoew opened this issue ยท 1 comments
Problems with the current way of displaying odds (assuming we are using "type": "minecraft:binomial"
in the recipe .json):
- Min. value will always be 0, even when
"p"
, the probability of success per trial, exceeds 1 (100%). For example, if
"result_amount": {
"type": "minecraft:binomial",
"p": 2,
"n": 2
}
then it will display
- Avg. Output: 4
- Min: 0
- Max: 2
which is incorrect, as i will always output 2 items.
- Problem is visible in the example above; Avg. Output: (4) is higher than Max: (2), which is not possible. When sieving though, it's actually impossible to get more drops than
"n"
, the amount of trials (same number as Max:).
I suggest changing/adding an alternative version to display the odds, such as displaying the actual values of "n"
and "p"
.
Original
- Avg. Output: 0.4
- Min: 0
- Max: 2
New
- Probability of success per trial: 20%
- Amount of trials: 2
Well p>1 is incorrect. In a binomial distribution, p is the probability that an item is dropped.