The Distillation "addRecipe" method consists of:

TypeData Type
Type
Output
Data Type
Fluidstack Array[]
Type
Output
Data Type
ItemStack Array[]
Type
Input
Data Type
Fluidstack
Type
Energy
Data Type
Integer
Type
Time in Ticks
Data Type
Integer
Type
Chance
Data Type
Float Array []

Each ItemStack Entry is linked to the corresponding "Chance" array entry.

Example:

ZenScript
Copy
[<minecraft:diamond>, <minecraft:leather> * 2]
[1, 1]

The Chance "Float" value should be between 0 and 1. Since it converts it from a float value to a percentage value between 0% and 100% I.E:

ZenScript
Copy
0.5     = 50%
0.22374 = 22.374%
1       = 100%

While you can submit a float higher than 1, it'll never yield a value over 100%

ZenScript
Copy
//mods.immersivepetroleum.Distillation.addRecipe(ILiquidStack[] fluidOutputs, IItemStack[] itemOutputs, ILiquidStack fluidInput, int energy, int time, float[] chance)

mods.immersivepetroleum.Distillation.addRecipe([<liquid:lava> * 5, <liquid:gasoline> * 5], [<minecraft:diamond>, <minecraft:leather> * 2], <liquid:water>, 5, 5, [1, 1]);