The rewards are organized into sections, and each section can contain several rewards. This separation allows distinguishing between rewards for regular players and VIP players, offering greater flexibility to customize each aspect of the server.
Defines the probability that the treasure will trigger, in percentage. Value between 0.001% and 100%.
The chance can be extremely low, going beyond 0.001%.
Example:
chance: 10
# or
chance: 0.01
# or
chance: 10.0
limit:
Maximum number of sections to be processed per treasure event. If the limit is not added, all treasures will attempt to trigger.
Example:
limit: 2
random:
Determines whether the section selection will be random.
Example:
random: true
permission:
Permission required to access the treasure.
Example:
permission: "minetreasures.conditions-treasures"
rewards:
List of rewards that the player may receive.
Examples of how to configure a reward can be found here: Rewards
Example:
rewards:
'1':
chance: 60.0
item:
material: 'REDSTONE'
amount: 6
commands:
- "[ACTIONBAR] &eYou have found a magical treasure!"
- "[MESSAGE] &6[Treasure] &7- &7You have found a treasure!"
'2':
chance: 20.05
use-fortune: true
item:
material: 'REDSTONE'
amount: 6
commands:
- "[ACTIONBAR] &eYou have found a magical treasure!"
- "[MESSAGE] &6[Treasure] &7- &7You have found a &aFortune&7 treasure!"