#left click requirement
1 messages · Page 1 of 1 (latest)
yes, you've done it correctly for the most part. Align your deny_commands with type
also, it's more helpful to send an actual paste of your menu rather than a picture
I can not copy text from a picture
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
oh, sorry
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
I see you added minimum_requirements, do you want that?
you don't need minimum_requirements or stop_at_success
oh
requirements:
requirement1:
type: has money
amount: 10000
deny_commands:
- '[message] Nie masz kasy'
- '[sound] ENTITY_VILLAGER_NO 100 1'
requirement2:
type: has permission
permission: deluxemenus.guimenu.ulepszenia
deny_commands:
- '[message] Już kupiłeś to ulepszenie'
- '[sound] ENTITY_VILLAGER_HURT 100 1'
left_click_commands:
- '[console] eco take %player_name% 25000'
- '[console] oba range set %player_name% 100'
- '[message] &6&lCapy&f&lCraft.pl &8» &aWłaśnie zakupiłeś &bPoziom 2 wyspy&a!'
- '[console] lp user %player_name% permission set deluxemenus.guimenu.ulepszenia false'
- '[sound] ENTITY_VILLAGER_CELEBRATE 100 1'```
also fyi, register_command: true not register-command: true
is this the paste of the image??
yes
yeah, i posted it for him
i taking the ss
bc he is shy to post himself
which file is the most recent
yeah
i want to type of has money have deny message and type of has permission have deny message
idk then XD
as i said earlier, this is mostly correct except for indentation of deny_commands
but i dont know how to do it with 2 requirements in one left_click_requirement
left_click_requirement:
requirements:
requirement1:
type: has money
amount: 10000
deny_commands: # Changed indentation
- '[message] Nie masz kasy'
- '[sound] ENTITY_VILLAGER_NO 100 1'
requirement2:
type: has permission
permission: deluxemenus.guimenu.ulepszenia
deny_commands: # Changed indentation
- '[message] Już kupiłeś to ulepszenie'
- '[sound] ENTITY_VILLAGER_HURT 100 1'
left_click_commands:
- '[console] eco take %player_name% 25000'
- '[console] oba range set %player_name% 100'
- '[message] &6&lCapy&f&lCraft.pl &8» &aWłaśnie zakupiłeś &bPoziom 2 wyspy&a!'
- '[console] lp user %player_name% permission set deluxemenus.guimenu.ulepszenia false'
- '[sound] ENTITY_VILLAGER_CELEBRATE 100 1'
@blazing fractal
okay thanks
also, fyi: You can use click_requirement and click_commands for ALL click types
it was correctly
nvm
It was almost correct
yeah but i mean from gui config
it is correctly rn?
nvm nvm XDD
Yes, I sent the correct version
@spring crag I have one more question. How can i do that how someone dont have upgrade of island in this gui show Unlocked in red color but how have upgrade of island show Unlocked in green color
idk u know what i mean
2 items using view requirements
items:
'locked'
material: dirty
slot: 0
priority: 2
display_name: "locked"
'unlocked'
material: dirty
slot: 0
priority: 1
display_name: "unlocked"
view_requirement:
requirements:
..
he meant if the upgrade is not bought, the item lore would show “u don’t have this upgrade” and after buying it would say “unlocked”
yes, what I sent will do that, he just has to fill in the requirement
the locked item gets the click_commands
oh okay
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
send your menu
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
I don't know your requirements, but here https://paste.helpch.at/uwiduvufij.bash
if they have the deluxemenus.guimenu.ulepszenia permission, they will see item 2 and be able to click it, which will then remove the permission from them and show item 1
ok i will set it tomorrow and i check it
wow i ve never seen it like that before
weird that ppl give the permission by default and then take it back
its not work
nvm its work
i am dumb
tysm again

we’re doing a oneblock server and we need a gui to upgrade island size
bentobox aoneblock
