How does product.probability work?
Posted: Thu Jun 09, 2016 7:40 pm
This is what the lua-api says about itL
So how would I make a recipe to have a .5 change to give just 1, not a number in between two barriers?
- amount :: float (optional): Amount of the item or fluid to give. If not specified, amount_min, amount_max and probability must all be specified.
- amount_min :: uint (optional): Minimal amount of the item or fluid to give. Has no effect when amount is specified.
- amount_max :: uint (optional): Maximum amount of the item or fluid to give. Has no effect when amount is specified.
- probability :: double (optional): A value in range [0, 1]. Item or fluid is only given with this probability; otherwise no product is produced. Has no effect when amount is specified.
So how would I make a recipe to have a .5 change to give just 1, not a number in between two barriers?