#Deluxemenus

1 messages · Page 1 of 1 (latest)

obtuse condor
#

can we put display name and lore item inside requirement?
so say it like you have 2 items(items A and B) you want both of this item to show up slot 0 with different display name, lore and different conditions,
if conditions A is sucesss then it will only show up only items A on slot 0 with Displayname A and lore A
if conditions B is sucesss then it will only show up only items B on slot 0 with Displayname B and lore B

of course checking the conditions with PAPI is needed.

surreal tinsel
#

yeah you'll have to put two different items in the menu

#

for condition A, put view_requirement of condition A
for condition B, put view_requirement of condition B
and lastly add priorities to both the items so that it'll check for condition A, if not met; it'll check for B

obtuse condor
hallow agate
#

you can have 2 items on the same slot, with different priorities and one with a view_requirement

#
items:
  itemA:
    display_name: "Display Name A"
    priority: 0
    slot: 0
    view_requirement:
      requirements:
        myRequirement:
          type: has permission
          permission: my.permission
  itemB:
    display_name: "Display Name B"
    slot: 0
    priority: 1
#

this will show itemA if yoi have the my.permission permission, otherwise it'll show itemB

#

you can of course change the requirement type, add more, and customize the items with lore and other things you may want

obtuse condor
obtuse condor