Sections
Sections & Rewards:
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.
<treasure name>:
chance: 20.0
sections:
<section name 01>:
chance: 100.0
limit: 1
random: true
permission: "permission.name>"
rewards:
'1':
# reward 01
'2':
# reward 02
<section name 02>:
# options..
rewards:
'1':
# reward 01
'2':
# reward 02
sections:
sections:
Defines the reward sections; they are used as reward groups.
Example:
sections:
<section name 01>:
# .. options ..
rewards:
'1':
# reward 01
'2':
# reward 01
<section name 02>:
# .. section rewards ..
chance:
chance:
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:
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:
random:
Determines whether the section selection will be random.
Example:
random: true
permission:
permission:
Permission required to access the treasure.
Example:
permission: "minetreasures.conditions-treasures"
rewards:
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!"
Last updated