Each cooking recipe comes with its own experience, and players can receive different cooking rewards based on their experience in the recipe, their cooking level, or by detecting Placeholder API variables Write it as follows, which can be found in the Loots folder
loots:
group1:
#The lower the weight, the earlier the judgment
weight: 0
#Formula proficiency range (including) -1 is unlimited
recipe-experience:
min: 41.0
max: 50.0
#Cooking grade requirements
level: 0
#The execution probability of 1.0 is 100%
chance: 1.0
#Randomly obtain 10-20,For specific writing methods, please refer to the plugin documentation
item: 'default;DIAMOND;0;10-20'
run:
- '[message]&aDue to your proficiency in the recipe, you received the best additional reward!'
group2:
weight: 1
recipe-experience:
min: 31.0
max: 40.0
level: 0
chance: 1.0
item: 'default;DIAMOND;0;5-10'
run:
- '[message]&aDue to your proficiency in the recipe, you received the best additional reward!'
base:
weight: 3
recipe-experience:
min: 0.0
max: 50.0
level: 0
chance: 1.0
item: 'default;BREAD;0;1'
run:
- '[message]&aYou deserve it!'
vip:
weight: 4
recipe-experience:
min: -1
max: -1
placeholder_equals:
#Is it only necessary to meet any of the following criteria to pass
only-one: false
placeholders:
papi1:
equal: '='
name: '%vip%'
value: 'yes'
level: 0
chance: 1.0
item: 'default;NETHER_STAR;0;1'
run:
- '[message]&eYou have received VIP exclusive rewards!'