toolreward.yml Default Reward Template
About 429 wordsAbout 1 min
This is PixelReward's reward template, used to set the prizes available for a specific animation
reward/reward/toolreward.yml
# Label name for this reward template
label: 'Tools Reward Kit'
# Quality
quality:
# You can customize quality names
# If you don't set a label here, the plugin will search for a global label in quality.yml
# If still not found, it will directly return the quality name
common:
# Label
label: Common
# Probability for this quality
prob: 0.9
rare:
label: Rare
prob: 0.1
broadcast: "<green><b>%player%</b> got <yellow><b>%reward%</b></yellow> from <#00FFFF><b>%reward_template_label%</b></#00FFFF>!"
# Rewards
reward:
# Random name, only for identification
item1:
# Format: material_name;quantity
item: wooden_pickaxe;1
# Quality
quality: common
# Probability of drawing this reward
probability: 0.4
item2:
item: stone_pickaxe;1
quality: common
probability: 0.3
item3:
item: iron_pickaxe;1
quality: common
probability: 0.2
item4:
item: golden_pickaxe;1
quality: common
probability: 0.2
item5:
item: diamond_pickaxe;1
quality: rare
probability: 0.1
item6:
item: netherite_pickaxe;1
quality: rare
probability: 0.05
item7:
item: iron_axe;1
quality: common
probability: 0.2
item8:
item: diamond_axe;1
quality: rare
probability: 0.1
item9:
item: stone_shovel;1
quality: common
probability: 0.15
# Command example
command:
# Item format: material_name;quantity
item: paper;1
# Item display name
display: <#DEE5A2>Command
# Quality
quality: common
# Probability of drawing this reward
probability: 0.1
# Custom Model Data
#custom-model-data: 1899
# If an item has properties, the corresponding actions will be executed even if the player doesn't click the item
# But it won't be placed in the reward storage in the end
properties:
# Any name
one:
# Execute command from console
type: console_command
# Command
command: tell %player% damn
# Money giving example (requires Vault)
money:
# Item format: material_name;quantity
item: gold_ingot;1
# Item display name
display: <#FFF700><shadow:#000FFF>Money
# Quality
quality: rare
# Probability of drawing this reward
probability: 0.2
# If an item has properties, the corresponding actions will be executed even if the player doesn't click the item
# But it won't be placed in the reward storage in the end
properties:
# Any name
one:
# Give money
type: give_money
# Amount
amount: 2000
# ItemLite example
# ItemLite is a small simple (static) item editor built into PixelReward
# You can directly go to module/itemlite/ to create files and create items
itemlite_example:
# Belongs to custom items, need to define the editor used by this item, format: itemlite;item_id;quantity
custom: itemlite;lucky_pickaxe;1
quality: rare
probability: 0.4
# MMOItems example
# Can get items with corresponding attributes based on player data
mmoitem_example:
# Belongs to custom items, format: mmoitems;category_name;item_id;quantity
custom: mmoitems;sword;LONG_SWORD;1
quality: rare
probability: 0.3