Вопрос DeluxeMenus - Проверка предмета

distrukter4

Пользователь
Сообщения
63
Плагин
DeluxeMenus, PlacholderAPI
Ядро сервера
  1. Spigot
Версия сервера
  1. 1.18+
Память сервера ОЗУ
8Gb
Здравствуйте.
Помогите сделать несколько проверок в одном слоте.
Например:
Проверка на сломанные блоки:
Дуб - 20 шт
Берёза - 40 шт
Ель - 80 шт
И тд.
И что бы после того, как будут такие числа или больше, выдавалась награда.

Буду очень благодарен!
 
Решение
Держи

Код:
  '12':
    material: oak_log
    slot: 12
    display_name: '&cКВЕСТ'
    lore:
    - ''
    - '&7 ▪ &fДубовое бревно: &a%statistic_mine_block:oak_log%/20'
    - '&7 ▪ &fБерёзовое бревно: &a%statistic_mine_block:birch_log%/40'
    - '&7 ▪ &fЕловое бревно: &a%statistic_mine_block:spruce_log%/80'
    - ''
    left_click_requirement:
      requirements:
        quest_1:
          type: '>='
          input: '%statistic_mine_block:oak_log%'
          output: '20'
        quest_2:
          type: '>='
          input: '%statistic_mine_block:birch_log%'
          output: '40'
        quest_3:
          type: '>='
          input: '%statistic_mine_block:spruce_log%'
          output: '80'
      deny_commands:
       - '[refresh]'
       -...
Держи

Код:
  '12':
    material: oak_log
    slot: 12
    display_name: '&cКВЕСТ'
    lore:
    - ''
    - '&7 ▪ &fДубовое бревно: &a%statistic_mine_block:oak_log%/20'
    - '&7 ▪ &fБерёзовое бревно: &a%statistic_mine_block:birch_log%/40'
    - '&7 ▪ &fЕловое бревно: &a%statistic_mine_block:spruce_log%/80'
    - ''
    left_click_requirement:
      requirements:
        quest_1:
          type: '>='
          input: '%statistic_mine_block:oak_log%'
          output: '20'
        quest_2:
          type: '>='
          input: '%statistic_mine_block:birch_log%'
          output: '40'
        quest_3:
          type: '>='
          input: '%statistic_mine_block:spruce_log%'
          output: '80'
      deny_commands:
       - '[refresh]'
       - '[message]'
       - '[message] &e&lИДИ РАБОТАЙ РАНО ЕЩЕ ДО НАГРАДЫ.'
       - '[message]'
    left_click_commands:
    - '[refresh]'
    - '[message] &e&lМОЛОДЕЦ ДЕРЖИ ПРИЗ'
 
Назад
Сверху Снизу