Skip to main content

Random Result

The random result chooses one or more possible results based on chances.

This is a premium result.

Basic example

result:
reward:
type: random
rolls: 1
chances:
common:
roll-chance: 80
type: item
offset: "0 0 0"
item:
material: IRON_INGOT
rare:
roll-chance: 20
type: item
offset: "0 0 0"
item:
material: DIAMOND

Fields

FieldTypeDescription
rollsNumberHow many times Structory rolls the table.
chancesSectionPossible results and their roll chances.
roll-chanceNumberChance value for that entry.

Use random results for reward crates, altars with loot tables, or rare bonus outcomes.

Keep chances easy to understand for balancing. For example, use values that add up to 100 when possible.