Code (YAML):
# Note: It is important not to change a voucher files name after players have a voucher as it will become un-openable!
###################################################################################################
###################################################################################################
#### ______ _ __ __ _ __ ####
#### | ____| | | \ \ / / | | /_ | ####
#### | |__ __ ____ _ _ __ ___ _ __ | | ___ \ \ / /__ _ _ ___| |__ ___ _ __ | | ####
#### | __| \ \/ / _` | '_ ` _ \| '_ \| |/ _ \ \ \/ / _ \| | | |/ __| '_ \ / _ \ '__| | | ####
#### | |____ > < (_| | | | | | | |_) | | __/ \ / (_) | |_| | (__| | | | __/ | | | ####
#### |______/_/\_\__,_|_| |_| |_| .__/|_|\___| \/ \___/ \__,_|\___|_| |_|\___|_| |_| ####
#### | | ####
#### |_| ####
###################################################################################################
###################################################################################################
# Below is the first example voucher, you can use this file as reference for all future vouchers you create
# To create a new voucher just copy and paste this file and rename it to assign it a different voucher ID.
# Alternatively, create a file with the name of your pouch followed by the '.yml' file extension, and edit it exactly as you wish.
#*
#* For a slightly more in depth documentation visit our docs website: https://vouchersplus.uhfinn.dev/
#*
#* ############################################################### *#
#* ####################### Primary Details ####################### *#
#* ############################################################### *#
# The name of the voucher, this is required for all created vouchers (Not to be confused with the ID, which is the file name)
Name
: '&6&lLUCKY &fVoucher'
Voucher
:
# The ICON used to represent the voucher
Item
: 'ENDER_CHEST'
# Whether the ICON should be enchanted
Enchanted
: true
# The lore of the voucher icon
Lore
:
- '&7Test your luck with the LUCKY Voucher'
- '&7Prizes Given
: 3'
- '&7Prize List:'
- '&7- &a
[VERY COMMON
] &f32x Oak Logs'
- '&7- &2
[COMMON
] &f16x Coal'
- '&7- &9
[UNCOMMON
] &f16x Iron'
- '&7- &d
[RARE
] &f12x Gold'
- '&7- &5
[ULTRA RARE
] &f8x Diamonds'
- '&7- &6
[LEGENDARY
] &f1x Nether Star'
#* ############################################################### *#
#* ####################### Effects Details ####################### *#
#* ############################################################### *#
# The minecraft sound ID and data to be played upon pouch redeem, don't add this section if you don't need it
Sound:
SoundID
: '
none'
Volume
: 1
Pitch
: 1
# The particle data to be spawned on the player upon pouch redeem, don't add this section if you don't need it
Particles:
ParticleID
: '
none'
Count
: 20
Offset
: 1
# The effect ran when the voucher is redeemed
# To get more information about the effects available, check out: https://vouchersplus.uhfinn.dev/additional-information/effects
Effect
: 'firework'
#* ############################################################### *#
#* ####################### Reward Details ######################## *#
#* ############################################################### *#
# The number of rewards that will be given upon redeeming the voucher
# Set to 'all' to give a player every item within the voucher (ignoring weighting)
RewardsPerOpen
: 3
# The list of rewards within the voucher, currently a voucher supports up to 28 items, any extra items are ignored
Rewards:
1
:
# The name of the reward
Name
: '&f32 Oak Logs'
# The icon of the reward
Icon:
Item
: OAK_LOG
Amount
: 32
# The weighted chance of getting the item, higher weight = higher chance (Doesn't have to add up to 100)
# If a weighting isn't provided, the item will automatically assume a weight of 100
Weight
: 100
# The command to be ran if this reward is given to the user, use <playerName> as a placeholder for the players name
Commands
:
- 'minecraft:give <playerName> minecraft:oak_log 32'
# The message sent when a player wins this prize, this message is sent immediately after the commands are run to allow any PAPI placeholders to update
# You can delete this field if you would rather no message was sent
Message
: '<prefix> &aYou have received 32x Oak Logs'
# The lore for the reward when previewed in the GUI
GUILore
:
- '&732x Oak Logs'
- '&7Win Chance
:
&f<chance>%'
2:
Name
: '&f16x Coal'
Icon:
Item
: COAL
Amount
: 16
Weight
: 80
Commands
:
- 'minecraft:give <playerName> minecraft:coal 16'
Message
: '<prefix> &aYou have received 16x Coal!'
GUILore
:
- '&716x Coal'
- '&7Win Chance
:
&f<chance>%'
3:
Name
: '&f16x Iron'
Icon:
Item
: IRON_INGOT
Amount
: 16
Weight
: 60
Commands
:
- 'minecraft:give <playerName> minecraft:iron_ingot 16'
Message
: '<prefix> &aYou have received 16x Iron Ingots!'
GUILore
:
- '&716x Iron Ingots'
- '&7Win Chance
:
&f<chance>%'
4:
Name
: '&f12x Gold'
Icon:
Item
: GOLD_INGOT
Amount
: 12
Weight
: 35
Commands
:
- 'minecraft:give <playerName> minecraft:gold_ingot 12'
Message
: '<prefix> &aYou have received 12x Gold Ingots!'
GUILore
:
- '&712x Gold Ingots'
- '&7Win Chance
:
&f<chance>%'
5:
Name
: '&f8x Diamonds'
Icon:
Item
: DIAMOND
Amount
: 8
Weight
: 10
Commands
:
- 'minecraft:give <playerName> minecraft:diamond 8'
Message
: '<prefix> &aYou have received 8x Diamonds!'
GUILore
:
- '&78x Diamonds'
- '&7Win Chance
:
&f<chance>%'
6:
Name
: '&f&l1x Nether Star'
Icon:
Item
: NETHER_STAR
Amount
: 1
Weight
: 2
Commands
:
- 'minecraft:give <playerName> minecraft:nether_star 1'
Message
: '<prefix> &aYou have received 1x Nether Star!'
GUILore
:
- '&71x Nether Star'
- '&7Win Chance
:
&f<chance>%'
#* ############################################################### *#
#* ####################### Additional Data ####################### *#
#* ################## Do Not Touch This Section ################## *#
AdditionalData
: null