Chance (Condition) — Skript

Addon: Skript · Category: Condition · Since: 1.0

Syntax

chance of %number%(\%|)

Description

A condition that randomly succeeds or fails. Valid values are between 0% and 100%, or if the percent sign is omitted between 0 and 1.

Examples

chance of 50%:
	drop a diamond
chance of {chance}% # {chance} between 0 and 100
chance of {chance} # {chance} between 0 and 1

View source