#Required Item

1 messages · Page 1 of 1 (latest)

fringe tusk
#

Hey, i've ran into an issue with item requirements. At first i tried it with an mmoitem item but that didnt work, so then i tried a vanilla item but that also didn't work, im not sure where i've gone wrong :/

    click_requirement:
      requirements:
        anything_here:
          type: has item
          amount: 1
          material: 'GOLDEN_NUGGET'
          deny_commands:
          - '[message] &cYou do not have the required item!'
jaunty halo
#

Can you try it with left_click_requirement?

#

I believe click requirement is not aways the best option

fringe tusk
# jaunty halo Can you try it with left_click_requirement?

Hey, this didnt work :/ it still have me the click message

    click_commands:
#    - '[console] toggledoor 12' #arena
#    - '[message] &8[&6&lBattle&8] &fYou have succesfully chosen to spawn &cMayDayRains!'
    - '[message] &8[&6&lBattle&8] &cMayDayRains &fwill spawn in &840 seconds!'
    left_click_requirement:
      requirements:
        anything_here:
          type: has item
          amount: 1
          material: 'GOLDEN_NUGGET'
          deny_commands:
          - '[message] &cYou do not have the required item!'
          - '[message] &cᴜɴᴅᴇʀᴡᴏʀʟᴅ ʙᴏꜱꜱ ᴛᴏᴋᴇɴ'
jaunty halo
#

use left_click_commands:

#

@fringe tusk

fringe tusk
jaunty halo
#

wdym

#

you got the message You have succesfully chosen to spawn &cMayDayRains!'

#

or ?

fringe tusk
#

thats the message that happens when it works, but i didnt get the deny command message

#
          deny_commands:
          - '[message] &cYou do not have the required item!'
          - '[message] &cᴜɴᴅᴇʀᴡᴏʀʟᴅ ʙᴏꜱꜱ ᴛᴏᴋᴇɴ'
jaunty halo
#

can you share the whole file?

fringe tusk
#
menu_title: '&8»&c&l&nɢᴀᴛᴇꜱ ᴏꜰ ᴛʜᴇ ᴜɴᴅᴇʀᴡᴏʀʟᴅ&8«'
open_command: 
- bosscerberus
size: 9
inventory_type: "DROPPER"
items:
  'glass':
    material: itemsadder-banished:filler-square-grey
    hide_attributes: true
    slots:
      - 0
      - 1
      - 2
      - 3
      - 5
      - 6
      - 7
      - 8
    display_name: '&f '
  'Cerberus':
    update: true
    priority: 1
    material: itemsadder-newyears1:newyears1_coin_golden
    slot: 4
    hide_attributes: true
    display_name: '&7ɢᴀᴛᴇꜱ ᴏꜰ ᴛʜᴇ ᴜɴᴅᴇʀᴡᴏʀʟᴅ &4[Boss]'
    lore:
    - ''
    - '&c&l ∙ &fSpawn Requirements&f:'
    - ''
    - '&7&oᴜɴᴅᴇʀᴡᴏʀʟᴅ ʙᴏꜱꜱ ᴛᴏᴋᴇɴ'
    - '&7'
    left_click_requirement:
#    - '[console] toggledoor 12' #arena
#    - '[message] &8[&6&lBattle&8] &fYou have succesfully chosen to spawn &cMayDayRains!'
    - '[message] &8[&6&lBattle&8] &cMayDayRains &fwill spawn in &840 seconds!'
    click_requirement:
      requirements:
        anything_here:
          type: has item
          amount: 1
          material: 'GOLDEN_NUGGET'
          deny_commands:
          - '[message] &cYou do not have the required item!'
          - '[message] &cᴜɴᴅᴇʀᴡᴏʀʟᴅ ʙᴏꜱꜱ ᴛᴏᴋᴇɴ'
jaunty halo
#

;-;

#

copy-paste this

#

it should work

fringe tusk
#

right click gave the message, left click didnt do anything :')

#

and no deny message

fringe tusk
fringe tusk
# jaunty halo ;-;

hopefully the vid is clear, when the message comes through in the chat thats me right clicking, and other than that i'm left clicking

dense matrix
#

Hmm. That shouldn't be the case. What Server type do you use?

#

It seems that click types are maybe inverted for you?

#

Can you execute /papi dump and send the generated link here?

fringe tusk
fringe tusk
dense matrix
#

1 issue I found is material: GOLDEN_NUGGET.

The correct material is GOLD_NUGGET from what I can see

#

I don't see any other issues with this specific item

fringe tusk
fringe tusk
fringe tusk
fringe tusk
#

Also, i just realised i dont think i turned off the ping when replying, i apologise for that!

dense matrix
fringe tusk
fringe tusk
#

1.14.2-DEV-207

dense matrix
#

Hmm. It should work with it. Can you display the items inside the menus?