
Arc Furnace's secondary output chance is inverted
BigBarza opened this issue ยท 0 comments
Minecraft Version
1.21.1
Immersive Engineering Version
Any version from 1.19 to 1.21, possibly earlier ones as well
Expected Behavior
A secondary output in an arc furnace recipe should have the reported chance to be produced.
"secondaries": [
{
"chance": 0.99,
"output": {
"item": "minecraft:gold_ingot"
}
}
],
This should have a 99% chance of producing a gold ingot, which is also stated by JEI
Actual Behavior
The output actually has a 1% chance to be produced.
It seems like the condition to roll a secondary output in ArcFurnaceRecipe should be a < rather than a >
if(secondary.chance() > random.nextFloat())
continue;
This means that the chance parameter acts as the chance to NOT give that output.
It can technically be circumvented by setting the change to the opposite value (say like, 0.3 instead of 0.7) but then JEI would show misleading info.
Steps to reproduce
- Create an arc furnace recipe and load it with any datapack loading method.
- Set the secondary output chance to something really high or really low
- Test the recipe in game and see that the opposite result happens.