#The problem with the requirement

1 messages · Page 1 of 1 (latest)

amber relic
#

The problem with the requirement in DeluxeMenus. Here's what I have:

menu_title: "Ворон"
open_command:
  - raven
size: 27
items:
  'item_1':
    material: BREAD
    slot: 16
    amount: 32
    display_name: "§fХлеб"
    lore:
      - ""
      - "&eСтоимость:"
      - "&6&l- Бравл Коин x32"
    left_click_commands:
      - '[console] minecraft:clear %player_name% gold_ingot 32'
      - '[console] minecraft:give %player_name% minecraft:bread 32'
      - '[message] &fВы &aуспешно&f приобрели хлеб!'
    left_click_requirement:
      requirements:
        has_item:
          type: has item
          material: GOLD_INGOT
          amount: 32
          deny_commands:
            - '[message] &fУ вас &cнету &fБравл коинов!'
        has_items:
          type: has item
          material: DIAMOND_PICKAXE
          amount: 1
          item_model: "brawl:galaxy_pickaxe"
          deny_commands:
            - '[message] &fF!'

So, when I decide to buy bread without kirk, then everything is fine. Bread is not bought. But if I decide to take a regular pickaxe without item_model, then there is a problem everything is bought, but I need it not to be bought. I read the documentation of the plugin but did not find any help there. Help please. I need bread to be bought exclusively with a Diamond pickaxe with item_model:"brawl:galaxy_pickaxe" I make it on 1.21.4 Purpur and I have the latest version of DeluxeMenus.

amber relic
#

@help_me

#

<t:1772345243:S>

amber relic
#

Cool....

strange gust
#

Wait did you really read the docs ?

#

That's allt he option of the "has item" requirement

#

Have tou tired model_data ? and strict maybe ?

#

item_model is only use to show an item on the GUI

#

@amber relic