#click_requirement doesnt work

1 messages · Page 1 of 1 (latest)

nova gulch
#
menu_title: '&8Test'

items:
  'buy_premium1':
    slot: 22
    priority: 3
    material: POTATO
    display_name: 'potato'
    left_click_requirement:
      requirements:
        potato_x1:
          type: has item
          material: "POTATO"
          amount: 1
          success_commands:
          - "[console] clear %player_name% minecraft:potato 1"
          - "[givemoney] 0.1"
          - "[message] #5FBCE9▶ &fВы успешно продали предмети скупщику!"
          deny_commands:
          - "[message] #5FBCE9▶ &fУ вас недостаточно предметов, чтобы продать скупщику."
          - "[close]"
    right_click_requirement:
      requirements:
        potato_x64:
          type: 'HAS_ITEM'
          material: "POTATO"
          amount: 64
          success_commands:
          - '[console] clear %player_name% minecraft:potato 1'
          - "[givemoney] 6.4"
          - "[message] #5FBCE9▶ &fВы успешно продали предмети скупщику!"
          deny_commands:
          - "[message] #5FBCE9▶ &fУ вас недостаточно предметов, чтобы продать скупщику."
          - "[close]"```
#

Does anyone knows why this doesn't work?

limpid prawn
#

You have an incorrect type 'HAS_ITEM' for your right_click_requirement but use the correct type has item for your left_click_requirement.

manic tide
#

Also, having just click requirements will do nothing. You need click commands.

#

If the plugin does not find click commands, it will not evaluate the requirements