#how?!?!?

1 messages · Page 1 of 1 (latest)

echo umbra
#

yo guys how do i do in deluxemenus like when you need to buy the first item before the second one

boreal comet
#
menu_title: '&6&ltest'
size: 9 
items:
  1:
    material: Dirt
    slot: 4
    priority: 2
    display_name: '&6This is the item 1'
    lore:
    - '&7This is the lore of the first item'
    click_commands:
    - '[givepermission] second.item'
    - '[refresh]'
  2: 
    material: grass_block
    slot: 4
    priority: 1
    view_requirement:
      requirements:
         perms:
          type: has permission
          permission: 'second.item'
    display_name: '&4This is the item 2'
    lore: 
    - '&7This is the lore of the second item'

this would probably work @echo umbra

echo umbra
#

Yo ima try tmrrw thx ❤️

boreal comet
#

np :d

echo umbra
#

ok but if i put it diffrent slots

#

how do i put it like

#

look

boreal comet
#

just change the slot ig?

echo umbra
#

oh i did

#

thx so much

boreal comet
#

np

echo umbra
#

yo

#

but how do i do

#

like

#

if i change

#

the

#

slots

#

a barrier should appear

#

till

#

i buy the 1st one

boreal comet
#

just add a barrier in the same slot

echo umbra
#

nice i did it

#

and one last question

#

how do i make one one time buy?

boreal comet
#

u just make a permission based item

#

u ll use the '!has permission' as a requirement

#

which checks if the player doesnt have that permission

#

and when they buy the item u ll give them that permission

#

so they wont be able to view it anymore

#

also add a [refresh] so the menu will get updated once they buy the item

#

in the click actions

echo umbra
#

what type of requirement

boreal comet
#

view requirement

boreal comet
#

but instead use a ! before the has permission

#

and put it in ''

#

need an example?

echo umbra
#

i think i need

boreal comet
#
  3: 
    material: dirt
    slot: 4
    priority: 2
    display_name: '&4This is the item 3'
    lore: 
    - '&7This is the lore of the third item'
    click_commands:
    - '[givepermission] third.item'
    - '[refresh]'
  3_purchased: 
    material: barrier
    slot: 4
    priority: 1
    view_requirement:
      requirements:
         perms:
          type: 'has permission'
          permission: 'third.item'
    display_name: '&4This is the item 3 [purchased]'
    lore: 
    - '&7This is the lore of the third item'
#

try this

#

oh

#

tbh this would also work

boreal comet
echo umbra
#

so can i add

#

2 view requirements

echo umbra
#

thx so much it workssss love ya

#

(no homo)