-
Notifications
You must be signed in to change notification settings - Fork 3
Examples
SuperRonanCraft edited this page Aug 3, 2019
·
8 revisions
Here are some examples of different menus!
-
Title: - '&a&lExample Frame #1' - '&a&lExample Frame #2' Frame-Delay: 20 ## Frame delay for the title Rows: 6 Commands: 'ex; example' Items: Broadcast: Slot: 1 ## Amount of ticks to delay each frame Frame-Delay: 20 ## 20 by default if disabled or if delay equals 0 Frames: 1: ## At least one frame is needed! ## PlaceholderAPI is supported in every text section! Name: '&bHey there %player_name%' ## Required Item: 'anvil:2:4' ## Required Lore: - '' - '&7This is the first frame!' 2: Name: '&aHey there %player_name%' Item: 'anvil:1:5' Lore: - '' - '&7This is the second frame!' Click-Handlers: 1: Click-Type: 'left'menus Shift: false ## If disabled, shift is ignored Commands: - 'broadcast &a%player_name% &cis a savage&f!' Price: 10 ## Must have vault and an economy plugin Price-Message: '%prefix% &cWhoops, looks like you need %price% to use this command!' Permission: 'example.savage' Permission-Message: '%prefix% &cLooks like you are not savage enough to use this command!' Wools: Slot: 2 Frame-Delay: 20 Frames: 1: Name: '&cHey there %player_name%' Item: 'wool:1' Lore: - '' - '&aThis is the first frame!' 2: Name: '&bHey there %player_name%' Item: 'wool:3:2' Lore: - '' - '&bThis is the second frame!' 3: Name: '&aHey there %player_name%' Item: 'wool:5:3' Lore: - '' - '&cThis is the third frame!'
-
Title: '&aJust the Tech' Auto-Close: 600 # Menu will close in 600 ticks (30 secs) Rows: 6 Commands: 'tech' Items: TextPlaceholders: Slot: 2 Frames: 1: Name: '&cSup %player_name%' Item: 'wool:1' Lore: - '' - '&aYou are within these coordinates! {cords:x1=200 x2=-200,z1=200 z2=-200,y1=50 y2=70}' - '&aYou are an epic player! {perm: donator.epic}' ViewHandlers: Slot: 3 Frames: 1: Name: '&cHey there %player_name%' Item: 'wool:1' ## <item>:[data]:[amount] (Supports placeholders) Lore: - '' - '&aYou are within these coordinates! {cords:x1=200 x2=-200,z1=200 z2=-200,y1=50 y2=70}' - '&aYou are an epic player! {perm: donator.epic}' View-Handlers: Permission: 'donator.epic' # Must have this permission to view this item Balance: 50 #Must have atleast $50 in their wallet to view this item Delay: Slot: 4 Frames: 1: Name: '&cMuahaha' Item: 'tnt' Lore: - '&4&lTry to spam me!' Click-Handlers: 1: Sounds: Basic: 'ITEM_ARMOR_EQUIP_GENERIC' Success: 'ITEM_TOTEM_USE' # [sound]:<volume>:<pitch> Failed: 'ENTITY_GHAST_DEATH' Commands: - 'tellraw: [{"text":"You can''t spam me!","color":"red","underlined":true},{"text":" But heres something cool","color":"gold","underlined":false},{"text":" Diamonds!","color":"aqua","italic":true,"clickEvent":{"action":"run_command","value":"I love Diamonds!"},"hoverEvent":{"action":"show_item","value":["{id:\"minecraft:diamond\",Count:1b,tag:{display:{Name:\"§b§lDIAMOND\"}},Damage:0s}"]},"underlined":false}]' Delay: 20 # Make the player wait 20 seconds between clicks Delay-Message: '&eTold ya! &aYou can''t spam me!&7 Wait another {secondsleft} seconds!'
An item that has multiple frames alternating between each frame at a rate of 20 ticks.
Title: '&1Animated Item menu'
Frame-Delay: 20
Rows: 4
Commands: 'animated'
Items:
ChangingWool:
Slot: 0
Frame-Delay: 20
Frames:
1:
Item: 'wool:0:10'
Name: '&fWhite wool'
Lore:
- '&f10 White Wool'
2:
Item: 'wool:1:1'
Name: '&6Orange wool'
Lore:
- '&6Orange'
3:
Item: 'wool:2:1'
Name: '&5Magenta wool'
Lore:
- '&5Magenta'
A title that has more than one string alternating between each at 40 ticks per title
Title:
- '&1Animated &3Title'
- '&3Animated &1Title'
Frame-Delay: 40
Rows: 1
Commands: 'menutitle'
Items:
SomeItem:
Slot: 0
Frame-Delay: 20
Frames:
1:
Item: 'stone'
Name: '&7Just a stone'
Lore:
- '&7Hey there!'
- '&7Why are you looking'
- '&7at me? I am just a'
- '&7stone!'
An item that special NBT tags such as banners, egg-type, color, etc.
Title: '&1NBT-Items'
Rows: 1
Commands: 'nbtitems'
Items:
Banner:
Slot: 0
Frames:
1:
Item: 'banner'
Name: '&2Creeper Banner'
Lore:
- '&7I have a creeper-'
- '&7faccccccce.'
Banner-Pattern: 'cakpak'
Skull:
Slot: 1
Frames:
1:
Item: 'stone' # The item will be replaced with a player-head
Name: '&eThe Mighty Notch'
Lore:
- '&7Notchs head'
Skull-Owner: 'Notch'
Colored:
Slot: 2
Frames:
1:
Item: 'stone' # The item will be replaced with a random item (leather_chestplate, tipped_arrow or potion)
Name: '&bHey %player_name%!'
Lore:
- '&7I am a random colored'
- '&7item!'
- ''
- '&7What am I? A chestplate?'
- '&7A tipped arrow? A potion?'
Color: '255, 0, 0'
Egg:
Slot: 3
Frames:
1:
Item: 'stone' # The item will be replaced with a spawn-egg
Name: '&eCreeper Sssssspawn-egg'
Lore:
- '&7BUMM!'
Egg-Type:'creeper'
Enchantment:
Slot: 4
Frames:
1:
Item: 'stone_sword'
Name: '&eMighty sword!'
Lore:
- '&7Sword of might!'
Enchantments:
- 'damage_all:3'
Create an inventory full of dynamic text, changing any placeholder with other valus!
Title: '&1Hey there %player_name%'
Rows: 1
Commands: 'placeholders'
Items:
Balance:
Slot: 0
Frame-Delay: 20
Frames:
1:
Item: 'gold_ingot'
Name: '&eMoney'
Lore:
- '&7You have:'
- '&2$%vault_eco_balance%'
Time:
Slot: 1
Frame-Delay: 40 # Update every 40 ticks, or 2 seconds (if server is running 20tps)
Frames:
1:
Item: 'watch'
Name: '&bWhat time is it?'
Lore:
- '&7It is %player_time%, right?'
2: # The second frame is needed to update the placeholder
Item: 'watch'
Name: '&bWhat time is it?'
Lore:
- '&7It is %player_time%, right?'
PlayersOnline:
Slot: 2
Frame-Delay: 20
Frames:
1:
Item: 'book_and_quill:0:%server_online%' # Amount = players online
Name: '&7Currently online'
Lore:
- '&7Check the Item-amount!'
- '&7item!'
2: # The second frame is needet, to update the placeholder
Item: 'book_and_quill:0:%server_online%' # Item-amount = players online
Name: '&7Currently online'
Lore:
- '&7Check the Item-amount!'
- '&7item!'
Chat with us on Discord
Have a Suggestion? Make an issue!
Thank you for viewing the Wiki for AdvancedCustomMenu!
Did this wiki help you out? Please give it a Star so I know it's getting use!
Check out my other plugins!