#Lore changing help
1 messages · Page 1 of 1 (latest)
open_command: tags
size: 35
open_commands:
- '[sound] item_book_page_turn'
items:
# === BANANA TAG ===
'banana_locked':
material: NAME_TAG
slot: 10
display_name: '&f%img_banana%'
lore:
- ''
- '&fCost: &b100 Gems'
- '&7Click to unlock this tag.'
view_requirement:
requirements:
lacks_perm:
type: has permission
permission: supremetags.tag.banana
value: false
left_click_requirement:
requirements:
has_gems:
type: '>='
input: '%coinsengine_balance_raw_gems%'
output: 100
deny_commands:
- "[message] ADFA&lSERVER &8» &cYou don't have enough gems to purchase this tag!"
- "[message] ADFA&lSERVER &8» &fYou need &b100 &fbut you only have &b%coinsengine_balance_gems%&f."
- "[close]"
success_commands:
- '[sound] entity_zombie_infect'
- '[console] gemadmin take %player_name% 100'
- '[console] lp user %player_name% permission set supremetags.tag.banana true'
- '[message] ADFA&lSERVER &8» &aYou unlocked the &f%img_banana% &atag!'
- '[refresh]'
'banana_selected':
material: NAME_TAG
slot: 10
display_name: '&f%img_banana%'
lore:
- ''
- '&a&lENABLED'
- '&7This tag is currently active.'
view_requirement:
requirements:
has_perm:
type: has permission
permission: supremetags.tag.banana
value: true
is_selected:
type: javascript
expression: '%supremetags_tag% == "banana"'
'banana_unselected':
material: NAME_TAG
slot: 10
display_name: '&f%img_banana%'
lore:
- ''
- '&aUNLOCKED'
- '&7Click to equip this tag.'
view_requirement:
requirements:
has_perm:
type: has permission
permission: supremetags.tag.banana
value: true
not_selected:
type: javascript
expression: '%supremetags_tag% != "banana"'
left_click_commands:
- '[console] supremetags set %player_name% banana'
- '[sound] entity_player_levelup'
- '[message] ADFA&lSERVER &8» &aYou equipped the &f%img_banana% &atag!'
- '[close]'
# === RETURN BUTTON ===
'return_button':
material: ARROW
slot: 30
hide_attributes: true
display_name: '&c&lReturn'
left_click_commands:
- '[sound] entity_item_pickup'
- '[player] gemshop'
# === NEXT PAGE BUTTON ===
'next_page':
material: ARROW
slot: 32
hide_attributes: true
display_name: '&a&lNext'
left_click_commands:
- '[sound] entity_item_pickup'
- '[player] tags2'
Your first item needs click commands, you only have success commands on it.
There's also a value: under your has permission checks you don't need there.
If you want to make sure they don't have a permission you can type: !has permission to invert the check
https://wiki.helpch.at/helpchat-plugins/deluxemenus/options-and-configurations/requirements#has-permission
https://wiki.helpch.at/helpchat-plugins/deluxemenus/options-and-configurations/requirements#success-commands
open_command: tags
size: 36
open_commands:
- '[sound] item_book_page_turn'
items:
banana_tag_locked:
priority: 0
material: NAME_TAG
slot: 10
display_name: '&fBanana Tag &7(Locked)'
lore:
- ''
- '&fCost: &b100 Gems'
- '&7Click to unlock this tag.'
view_requirement:
requirements:
lacks_perm:
type: '!has permission'
permission: supremetags.tag.banana
click_requirement:
requirements:
has_enough_gems:
type: javascript
expression: '%coinsengine_balance_raw_gems% >= 100'
deny_commands:
- '[message] &c✖ Not enough gems! Need &b100&c.'
- '[close]'
success_commands:
- '[console] gemadmin take %player_name% 100'
- '[console] lp user %player_name% permission set supremetags.tag.banana true'
- '[message] &a✔ You unlocked the Banana tag!'
- '[close]'
banana_tag_unselected:
priority: 1
material: NAME_TAG
slot: 10
display_name: '&fBanana Tag'
lore:
- ''
- '&c&lDISABLED'
- '&7Click to enabled this tag.'
view_requirement:
requirements:
is_unselected:
type: and
requirements:
has_perm:
type: has permission
permission: supremetags.tag.banana
value: true
not_selected:
type: javascript
expression: "%supremetags_tag% != 'banana'"
left_click_commands:
- '[console] tags set %player_name% banana'
- '[sound] entity_player_levelup'
- '[message] &a✔ You equipped the Banana tag!'
- '[close]'
banana_tag_selected:
priority: 2
material: NAME_TAG
slot: 10
display_name: '&fBanana Tag'
lore:
- ''
- '&a&lENABLED'
- '&7Click to disable this tag.'
view_requirement:
requirements:
is_selected:
type: and
requirements:
has_perm:
type: has permission
permission: supremetags.tag.banana
value: true
is_selected:
type: javascript
expression: "%supremetags_tag% == 'banana'"
left_click_commands:
- '[console] tags reset %player_name%'
- '[sound] entity_player_levelup'
- '[message] &a✔ You equipped the Banana tag!'
- '[close]'
return_button:
material: ARROW
slot: 30
display_name: '&c&lReturn'
left_click_commands:
- '[sound] entity_item_pickup'
- '[player] gemshop'
next_page:
material: ARROW
slot: 32
display_name: '&a&lNext'
left_click_commands:
- '[sound] entity_item_pickup'
- '[player] tags2'
this is the new one
still don't work