Managing Rewards & Drop Weight
Explanation
First, let's understand how the format works.
mobs:
BLOCK:
- 'PAY WEIGHT'
BLOCK would be something like STONE or COAL_ORE. You can find a list of valid blocks here.
PAY would be what the player would be paid if the roll lands.
WEIGHT would be the distribution value (or chance) of that reward.
Examples
blocks:
COAL_ORE:
- '10'
# $10 with a weight of 100, will always drop
blocks:
COAL_ORE:
- '10' # $10 with a weight of 100
- '20' # $20 with a weight of 100
# 200 total weight | each value is 50% chance
blocks:
COAL_ORE:
- '10 80' # $10 with a weight of 80
- '20 20' # $20 with a weight of 20
# 100 total weight | $10 80% chance | $20 20% chance
blocks:
COAL_ORE:
- '10 10' # $10 with a weight of 10
- '20 5' # $20 with a weight of 5
# 15 total weight BUT set to 100 | $10 10% chance | $20 5% chance | $0 85% chance
Last updated
Was this helpful?