Skip to content

Chance

Meta Condition Type

Generates a random value ranging from 0.0 to 1.0 and checks if it's less than the specified value.

Type ID: eggolib:chance

Fields

Field Type Default Description
chance Float The value to compare the generated random value to.

Examples

"condition": {
    "type": "eggolib:chance",
    "chance": 0.5
}

This example will evaluate to true 50% of the time.