Jump to content

Weighted RNG

From Leaf Essentials

Weighted RNG works by doing /scriptevent leaf:weighted_rng

Example:

/scriptevent leaf:weighted_rng <objective> 75 1 25 2

that's a 75% chance for 1 and a 25% chance for 2

For multiple numbers

25 1 25 2 30 3 20 4

25% chance for 1

25% chance for 2

30% chance for 3

20% chance for 4


not all percentages need to add up to 100% but results can become unpredictable

- Techna

PS: Trashy was high asf making this