Code (Text):
##########################
# BATTLEPASS #
# #
# by CinturonCris #
# #
##########################
title: "&0&nFree Rewards&7 [1]"
sound-open: UI_BUTTON_CLICK
size: 54
items:
fill: # Item to fill empty spaces
material: GRAY_STAINED_GLASS_PANE
name: "&7"
slot: 0-53 # You can do this to fill with items you want, yes, skip if the slot is already occupied.
coal_reward:
slot: 19
# Here you can define the number of items that will be seen in the stack, you can delete this.
amount: 2
material: MINECART
# previous-item, works to show an item at the beginning,
# when the player claims the reward, it will show the "material: " if previous-item, you delete it, it will only use material.
previous-item: CHEST_MINECART
name: "&7Free Coal"
lore:
- ""
- "&bClick to claim a free coal"
- "&band money!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
# Actions! What do we have here? You can perform different actions when claiming a reward
# for example playing a sound or appearing titles on the screen.
# Remember to use the correct ID depending on the version you use,look for sounds from your version.
actions:
- "[title] &a&lCongratulations &b%player% &a&l!"
- "[broadcast] &7[&dBattlepass&7] The player %player% has claimed the &d%reward%!"
- "[no-message]" # This is so that the default claimed reward message in messages.yml does not fire for this reward.
- "[subtitle] &aYou claimed the reward."
- "[sound] ENTITY_PLAYER_LEVELUP"
- "[particle] SMALL_FLAME:30"
- "[close]" # If you want the menu to close when claiming this reward.
# Deny Actions! added in 2.9-beta
# Here you can execute actions for when the player does NOT yet have enough xp to claim the reward, as always, you can delete this line if you are not interested.
deny-actions:
- "[sound] BLOCK_ANVIL_BREAK"
- "[close]"
# On the commands, you can now place more than 1, divided with: or separated by lines.
# The benefit of : is that they are executed at the same time,
# online they are executed in a chain in case the first one has problems with certain commands.
custom_command: "give %player% coal 1:eco give %player% 100" # 2.9-beta - The custom_command will soon be changed to "actions:".
xp_required: 12
iron_reward:
slot: 20
amount: 2
material: IRON_INGOT
name: "&b2 Free Iron Ingot"
lore:
- ""
- "&eClick to claim a 2 free iron ingot!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
actions:
- "[title] &a&lEPIC &b%player% &a&l!"
- "[subtitle] &dProcessed reward."
- "[sound] BLOCK_NOTE_BLOCK_PLING"
- "[particle] VILLAGER_HAPPY:5"
- "[close]"
deny-actions:
- "[sound] BLOCK_ANVIL_BREAK"
- "[close]"
# Here we have the version in the form of a list that is executed in a chain.
custom_command:
- give %player% iron_ingot 2
- eco give %player% 200
xp_required: 20
redstone_reward:
slot: 21
material: REDSTONE
name: "&7Free Redstone"
lore:
- ""
- "&aClick to claim a free redstone!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
actions:
- "[title] &e&lWOW!"
- "[subtitle] &bNICE!"
- "[sound] ENTITY_ENDER_DRAGON_GROWL"
deny-actions:
- "[sound] BLOCK_ANVIL_BREAK"
- "[close]"
custom_command: "give %player% redstone 1"
xp_required: 50
diamond_reward:
slot: 22
material: DIAMOND
name: "&bFree Diamond"
lore:
- ""
- "&eClick to claim a free diamond!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% diamond 1"
xp_required: 100
emerald_reward:
slot: 23
material: EMERALD
name: "&aFree Emerald"
lore:
- ""
- "&bClick to claim a free emerald!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
deny-actions:
- "[sound] BLOCK_ANVIL_BREAK"
- "[close]"
custom_command: "give %player% emerald 1"
xp_required: 150
gold_reward:
slot: 24
material: GOLD_INGOT
name: "&6Free Gold Ingot"
lore:
- ""
- "&eClick to claim a free gold ingot!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% gold_ingot 1"
xp_required: 200
money1:
slot: 25
material: PAPER
name: "&6Free Money"
lore:
- ""
- "&eClick to claim a &a300$&e!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
deny-actions:
- "[sound] BLOCK_ANVIL_BREAK"
- "[close]"
custom_command: "eco give %player% 300"
xp_required: 250
lapis_reward:
slot: 28
material: LAPIS_BLOCK
name: "&9Free Lapis Block"
lore:
- ""
- "&eClick to claim a free lapis block!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% lapis_block 1"
xp_required: 300
iron_pickaxe_reward:
slot: 29
material: IRON_PICKAXE
name: "&fFree Iron Pickaxe"
lore:
- ""
- "&eClick to claim a free iron pickaxe!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% iron_pickaxe 1"
xp_required: 350
iron_axe_reward:
slot: 30
material: IRON_AXE
name: "&fFree Iron Axe"
lore:
- ""
- "&eClick to claim a free iron axe!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% iron_axe 1"
xp_required: 400
diamond__sword_reward:
slot: 31
material: DIAMOND_SWORD
name: "&fFree Diamond Sword"
lore:
- ""
- "&eClick to claim a free diamond sword!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% diamond_sword 1"
xp_required: 450
diamond__leggings:
slot: 32
material: DIAMOND_LEGGINGS
name: "&dFree Diamond Leggings"
lore:
- ""
- "&eClick to claim a free diamond leggings!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% diamond_leggings 1"
xp_required: 500
diamond__chestplate:
slot: 33
material: DIAMOND_CHESTPLATE
name: "&bFree Diamond Chestplate"
lore:
- ""
- "&eClick to claim a free diamond chestplate!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "give %player% diamond_chestplate 1"
xp_required: 550
money2:
slot: 34
material: PAPER
name: "&6Free Money"
lore:
- ""
- "&eClick to claim a &a1000$&e!"
- "&c&lXP &b{own_xp} &7| &c{xp_required}"
- ""
- "{state}"
- ""
custom_command: "eco give %player% 1000"
xp_required: 600
player_info:
slot: 4
material: PLAYER_HEAD
name: "&e&lINFO"
lore:
- ""
- "&7Level: &c{own_xp}"
- "&7Next Reward: "
#You can edit the {xp_bar} variable in messages.yml
- " {xp_bar}"
- "&8● &7XP bar to claim the reward."
#You can edit the {premium_or_free} variable in messages.yml
- "&8● &7Your pass: {premium_or_free}"
- ""
back_button:
slot: 45
material: ARROW
name: "&c&lBACK"
lore:
- ""
- "&7Click to go back to"
- "&7the main menu."
- ""
menu-open: main_menu.yml
next_button:
slot: 53
material: ARROW
name: "&c&lNEXT PAGE"
lore:
- ""
- "&7Click to go to the next page"
- ""
menu-open: free_menu_page_2.yml