-
Notifications
You must be signed in to change notification settings - Fork 23
DeluxeMenus Example Menus
cj89898 edited this page Apr 22, 2023
·
5 revisions
Crafting Example
Example of 4 menu items stacked in one slot for crafting.
Recipe: 1 stick and 1 flint for 1 "Flint Knife"
# CheckItem Example Menu
# More info about the expansion: https://helpch.at/placeholders#checkitem
# Manual Download: https://api.extendedclip.com/expansions/checkitem/
# Built on v2.0.2
menu_title: '&lCheckItem Crafting Menu'
size: 27
items:
'examplecdn':
material: WOODEN_SWORD
slot: 11
priority: 4 #Priority 4 will mean it will only display when all the other item view requirements are not met
hide_attributes: true
display_name: '&8Flint Knife'
lore:
- ' '
- '&eNeeds:'
- '&cStick 1x ✗'
- '&cFlint 1x ✗'
- ' '
- '&cNot Craftable'
click_commands:
- '[message] &cYou don''t have enough materials'
'examplecdf':
material: WOODEN_SWORD
slot: 11
priority: 3
hide_attributes: true
display_name: '&8Flint Knife'
lore:
- ' '
- '&eNeeds:'
- '&cStick 1x ✗'
- '&aFlint 1x ✓'
- ' '
- '&cNot Craftable'
view_requirement:
requirements:
flint: #Checks if the player has 1 flint
type: string equals
input: '%checkitem_mat:flint,amt:1%'
output: 'yes'
click_commands:
- '[message] &cYou don''t have enough materials'
'examplecds':
material: WOODEN_SWORD
slot: 11
priority: 2
hide_attributes: true
display_name: '&8Flint Knife'
lore:
- ' '
- '&eNeeds:'
- '&aStick 1x ✓'
- '&cFlint 1x ✗'
- ' '
- '&cNot Craftable'
view_requirement:
requirements:
stick: #Checks if the player has 1 stick
type: string equals
input: '%checkitem_mat:stick,amt:1%'
output: 'yes'
click_commands:
- '[message] &cYou don''t have enough materials'
'examplecd':
material: WOODEN_SWORD
slot: 11
priority: 1
hide_attributes: true
display_name: '&8Flint Knife'
lore:
- ' '
- '&eNeeds:'
- '&aStick 1x ✓'
- '&aFlint 1x ✓'
- ' '
- '&aCraftable'
- '&7&oClick to craft'
view_requirement:
requirements:
stick: #Checks if the player has 1 stick
type: string equals
input: '%checkitem_mat:stick,amt:1%'
output: 'yes'
flint: #Checks if the player has 1 flint
type: string equals
input: '%checkitem_mat:flint,amt:1%'
output: 'yes'
click_requirement: #This is only here to guarantee the player doesn't get a free flint sword
requirements:
stick:
type: string equals
input: '%checkitem_mat:stick,amt:1%'
output: 'yes'
flint:
type: string equals
input: '%checkitem_mat:flint,amt:1%'
output: 'yes'
click_commands:
- '[placeholder] %checkitem_remove_mat:stick,amt:1% %checkitem_remove_mat:flint,amt:1%' #Removes 1 stick and 1 flint
- '[placeholder] %checkitem_give_mat:wooden_sword,amt:1,nameequals:&8Flint Knife%' #Gives the user 1 wooden sword with the name Flint Knife
- '[message] &fYou crafted &61 &8Flint Knife'Sell Menu (Using arguments)
Uses the Math expansion for calculations and uses arguments for item information. Example usage: /sellshop stick 12.34
# CheckItem Example Menu
# More info about the expansion: https://helpch.at/placeholders#checkitem
# Manual Download: https://api.extendedclip.com/expansions/checkitem/
# Built on v2.6.5
#
# This example also uses the Math expansion to calculate prices
#
menu_title: '&lCheckItem Sell Shop'
size: 45
open_command: sellshop
register_command: true
args:
- item
- price
items:
'black_glass':
material: BLACK_STAINED_GLASS_PANE
display_name: "&r"
slots:
- 0-9
- 17-18
- 26-27
- 35-44
'orange_glass':
material: ORANGE_STAINED_GLASS_PANE
display_name: "&r"
slots:
- 10-16
- 28-34
'sell_all':
material: CHEST
slot: 25
display_name: "&r"
lore:
- "&f&l » &6&lSell all &f&l«"
- "&n"
- "&7● Quantity: &6%checkitem_amount_mat:{item}%"
- "&7● Value: &6$%math_2:_{checkitem_amount_mat:{item}}*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item}%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_{checkitem_amount_mat:{item}}*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a%checkitem_amount_mat:{item}% &7of &e{item} &7for &a$%math_2:_{checkitem_amount_mat:{item}}*{price}%'
- '[placeholder] %checkitem_remove_mat:{item}%'
- '[close]'
'sell_1':
material: 'placeholder-%parseother_{s}_{{item}}%'
slot: 19
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &61"
- "&7● Value: &6$%math_2:_1*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item},amt:1%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_1*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a1 &7of &e{item} &7for &a$%math_2:_1*{price}%'
- '[placeholder] %checkitem_remove_mat:{item},amt:1%'
- '[close]'
'sell_4':
material: 'placeholder-%parseother_{s}_{{item}}%'
amount: 4
slot: 20
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &64"
- "&7● Value: &6$%math_2:_4*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item},amt:4%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_4*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a4 &7of &e{item} &7for &a$%math_2:_4*{price}%'
- '[placeholder] %checkitem_remove_mat:{item},amt:4%'
- '[close]'
'sell_8':
material: 'placeholder-%parseother_{s}_{{item}}%'
amount: 8
slot: 21
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &68"
- "&7● Value: &6$%math_2:_8*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item},amt:8%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_8*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a8 &7of &e{item} &7for &a$%math_2:_8*{price}%'
- '[placeholder] %checkitem_remove_mat:{item},amt:8%'
- '[close]'
'sell_16':
material: 'placeholder-%parseother_{s}_{{item}}%'
amount: 16
slot: 22
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &616"
- "&7● Value: &6$%math_2:_16*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item},amt:16%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_16*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a16 &7of &e{item} &7for &a$%math_2:_16*{price}%'
- '[placeholder] %checkitem_remove_mat:{item},amt:16%'
- '[close]'
'sell_32':
material: 'placeholder-%parseother_{s}_{{item}}%'
amount: 32
slot: 23
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &632"
- "&7● Value: &6$%math_2:_32*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item},amt:32%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_32*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a32 &7of &e{item} &7for &a$%math_2:_32*{price}%'
- '[placeholder] %checkitem_remove_mat:{item},amt:32%'
- '[close]'
'sell_64':
material: 'placeholder-%parseother_{s}_{{item}}%'
amount: 64
slot: 24
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &664"
- "&7● Value: &6$%math_2:_64*{price}%"
- "&n"
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{item},amt:64%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_64*{price}%'
- '[message] &b&lSHOP &a»&7 You sold &a64 &7of &e{item} &7for &a$%math_2:_64*{price}%'
- '[placeholder] %checkitem_remove_mat:{item},amt:64%'
- '[close]'Sell Menu (Using meta)
Uses the Math expansion for calculations, Utils for nested placeholders, and Deluxemenus meta for item information. Contains a test item for examples of how to set/clear the meta.
# CheckItem Example Menu
# More info about the expansion: https://helpch.at/placeholders#checkitem
# Manual Download: https://api.extendedclip.com/expansions/checkitem/
# Built on v2.6.7
#
# This example also uses the Math expansion to calculate prices
# and the Utils expansion for nested placeholder parsing
#
menu_title: '&lCheckItem Sell Shop'
size: 45
close_commands:
- '[meta] remove dmshop-price DOUBLE 0.00'
- '[meta] remove dmshop-item STRING air'
items:
'black_glass':
material: BLACK_STAINED_GLASS_PANE
display_name: "&r"
priority: 100
slots:
- 0-9
- 17-18
- 26-27
- 35-44
'orange_glass':
material: ORANGE_STAINED_GLASS_PANE
display_name: "&r"
priority: 100
slots:
- 10-16
- 28-34
'sell_all':
material: CHEST
slot: 25
display_name: "&r"
lore:
- "&f&l » &6&lSell all &f&l«"
- "&n"
- "&7● Quantity: &6%checkitem_amount_mat:{deluxemenus_meta_dmshop-item_STRING_}%"
- "&7● Value: &6$%utils_math_2:_{checkitem_amount_mat:{deluxemenus_meta_dmshop-item_STRING_}}*{deluxemenus_meta_dmshop-price_DOUBLE_0}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_}%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %utils_math_2:_{checkitem_amount_mat:{deluxemenus_meta_dmshop-item_STRING_}}*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a%checkitem_amount_mat:{deluxemenus_meta_dmshop-item_STRING_}% &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%nested_math_2:_{checkitem_amount_mat:{deluxemenus_meta_dmshop-item_STRING_}}*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_}%'
- '[close]'
'sell_1':
material: 'placeholder-%deluxemenus_meta_dmshop-item_STRING_air%'
slot: 19
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &61"
- "&7● Value: &6$%math_2:_1*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:1%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_1*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a1 &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%math_2:_1*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:1%'
- '[close]'
'sell_4':
material: 'placeholder-%deluxemenus_meta_dmshop-item_STRING_air%'
amount: 4
slot: 20
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &64"
- "&7● Value: &6$%math_2:_4*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:4%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_4*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a4 &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%math_2:_4*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:4%'
- '[close]'
'sell_8':
material: 'placeholder-%deluxemenus_meta_dmshop-item_STRING_air%'
amount: 8
slot: 21
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &68"
- "&7● Value: &6$%math_2:_8*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:8%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_8*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a8 &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%math_2:_8*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:8%'
- '[close]'
'sell_16':
material: 'placeholder-%deluxemenus_meta_dmshop-item_STRING_air%'
amount: 16
slot: 22
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &616"
- "&7● Value: &6$%math_2:_16*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:16%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_16*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a16 &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%math_2:_16*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:16%'
- '[close]'
'sell_32':
material: 'placeholder-%deluxemenus_meta_dmshop-item_STRING_air%'
amount: 32
slot: 23
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &632"
- "&7● Value: &6$%math_2:_32*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:32%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_32*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a32 &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%math_2:_32*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:32%'
- '[close]'
'sell_64':
material: 'placeholder-%deluxemenus_meta_dmshop-item_STRING_air%'
amount: 64
slot: 24
display_name: "&r"
lore:
- "&f&l » &6&lSell &f&l«"
- "&n"
- "&7● Quantity: &664"
- "&7● Value: &6$%math_2:_64*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%"
- "&n"
view_requirement:
requirements:
not_empty:
type: '!string equals'
input: '%deluxemenus_meta_dmshop-item_STRING_%'
output: ''
click_requirement:
requirements:
has_items:
type: 'string equals'
input: '%checkitem_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:64%'
output: 'yes'
deny_commands:
- '[message] &b&lSHOP &a»&7 You don''t have enough items to sell.'
click_commands:
- '[givemoney] %math_2:_64*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[message] &b&lSHOP &a»&7 You sold &a64 &7of &e%deluxemenus_meta_dmshop-item_STRING_air% &7for &a$%math_2:_64*{deluxemenus_meta_dmshop-price_DOUBLE_0.00}%'
- '[placeholder] %checkitem_remove_mat:{deluxemenus_meta_dmshop-item_STRING_},amt:64%'
- '[close]'
'test_item':
material: carrot
amount: 1
slot: 40
display_name: "&eTesting Item"
lore:
- "&fLeft Click: Sets item to Carrot and sell price to $2.87"
- "&fRight Click: Clears item and price"
left_click_commands:
- '[meta] set dmshop-price DOUBLE 2.87'
- '[meta] set dmshop-item STRING Carrot'
- '[refresh]'
right_click_commands:
- '[meta] remove dmshop-price DOUBLE 0.00'
- '[meta] remove dmshop-item STRING air'
- '[refresh]'