#button click animation?

1 messages · Page 1 of 1 (latest)

brisk zealot
#

hey how would i make something when you click it first it changes from gray dye to lime dye back to gray dye then it opens a menu. like a button click

kindred citrus
#

it would be a little weird, but you could do something like this with the click commands

#
click_commands:
- '[givepermission] whatever.you.want' #This permission will be used for the view requirement
- '[refresh]<delay=2>'
- '[takepermission] whatever.you.want<delay=4>'
- '[refresh]<delay=6>'
- '[openguimenu] menu <delay=8>'
#

If I understood what you wanted to do

#

for the green/gray, you need multiple items in the same slot.
One that shows when you have permission (probably the lime it sounds like)
and one that shows when you don't have the permission (gray)

#

so when you click gray, it gives perm, refreshes to show lime, takes perm, refreshes to show gray, opens menu

brisk zealot
kindred citrus
#
items:
  lime:
    material: LIME_DYE
    slot: 0
    priority: 1
    view_requirement:
      requirements:
        hasperm:
          type: has permission
          permission: 'whatever.you.want'
  gray:
    material: GRAY_DYE
    slot: 0
    priority: 2
    click_commands:
    - '[givepermission] whatever.you.want' #This permission will be used for the view requirement
    - '[refresh]<delay=2>'
    - '[takepermission] whatever.you.want<delay=4>'
    - '[refresh]<delay=6>'
    - '[openguimenu] menu <delay=8>' #Replace menu with your menu name
#

this should work, it was a quick draft

#

@brisk zealot

brisk zealot
#

thank you so much