Item Attributes

potionProbability

This attribute defines the probability that the potion effect is added to the player. 0.0 means it won't be added and 1.0 means it will be added everytime. It is for food only.

Examples

// Default value
potionProbability[0] = 1.0
// ...
potionProbability[31] = 1.0

potionProbability[3] = 0.5;

potionProbability[17] = 0.8;