#button click animation?
1 messages · Page 1 of 1 (latest)
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
if its not too much to ask could you give me the full menu with the items and stuff? because i dont know how to assign permission to the item thing :C
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
thank you so much