#left click requirement

1 messages · Page 1 of 1 (latest)

slim quiver
#

Hello. I have a question. Can i do 2 requirements in one left_click_requirement: with different types

spring crag
#

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

median peakBOT
#
FAQ Answer:

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

median peakBOT
#
📋 Your paste: vxrtebs
https://paste.helpch.at/hupavuteja

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

spring crag
#

I see you added minimum_requirements, do you want that?

#

you don't need minimum_requirements or stop_at_success

slim quiver
#

oh

blazing fractal
#
      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'```
spring crag
#

also fyi, register_command: true not register-command: true

spring crag
blazing fractal
#

yes

slim quiver
blazing fractal
#

i taking the ss

slim quiver
#

bc he is shy to post himself

spring crag
#

which file is the most recent

blazing fractal
#

yeah

slim quiver
#

i just copied that

blazing fractal
#

i want to type of has money have deny message and type of has permission have deny message

spring crag
#

well what you sent is not what cordi sent @slim quiver

#

lol

slim quiver
#

idk then XD

spring crag
blazing fractal
#

but i dont know how to do it with 2 requirements in one left_click_requirement

slim quiver
#

i just copied the whole file from gui

#

3 minutes ago

spring crag
#
    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

blazing fractal
#

okay thanks

spring crag
#

also, fyi: You can use click_requirement and click_commands for ALL click types

blazing fractal
#

nvm

spring crag
#

It was almost correct

blazing fractal
#

yeah but i mean from gui config

spring crag
#

i don't understand

#

but probably ok

blazing fractal
blazing fractal
spring crag
#

Yes, I sent the correct version

blazing fractal
#

okay let me try

#

omg i love u @spring crag ❤️

#

tysm

blazing fractal
#

@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

spring crag
#

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:
        ..
slim quiver
#

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”

spring crag
#

yes, what I sent will do that, he just has to fill in the requirement

#

the locked item gets the click_commands

slim quiver
#

oh okay

blazing fractal
#

how to do it?

#

bc i dont understand wdym

#

@spring crag

#

sorry for ping

spring crag
blazing fractal
#

okay thx

#

im dumb and i still don’t understand that

spring crag
#

?paste

median peakBOT
#
FAQ Answer:

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

spring crag
#

send your menu

blazing fractal
#

?paste

median peakBOT
#
FAQ Answer:

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

blazing fractal
spring crag
#

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

blazing fractal
#

ok i will set it tomorrow and i check it

keen hornet
#

weird that ppl give the permission by default and then take it back

spring crag
#

yes I am not sure what it is for

#

🤷‍♂️

blazing fractal
blazing fractal
#

nvm its work

#

i am dumb

#

tysm again

slim quiver
keen hornet
#

ohhhh

#

u use the superiorskyblock2 oneblock or the bentobox one?

blazing fractal
#

bentobox aoneblock