#help for requirement

1 messages · Page 1 of 1 (latest)

silk sapphire
#
menu_title: '&4&lМЕНЮ СЕРВЕРА'
open_command:
  - shar
size: 45
# as always, only cool people can open this menu :)
"items":
  'shar':
    material: beacon
    slot: 20
    display_name: "&3Крафт шара силы"
    lore:
      - "&7Нажмите чтобы сделать &6Шар Силы"
      - "&f&lЦЕНА&f: 25.000 &6Монет"
    left_click_requirement:
      requirements:
        points_check:
          type: string equals
          input: '%checkitem_potiontype:strength,potionupgraded:true%'
          output: 'yes'
        item_check2:
          type: javascript
          expression: 'checkitem_amount_potiontype:strength,potionupgraded:true% >= 1'
    deny_commands:
      - '[sound] ENTITY_WANDERING_TRADER_NO'
      - '[message]'
      - '[message]&c Санта Клаус  |  &fНет необходимых вещей или кол-ва вещей в инвентаре для сдачи'
      - '[message]'
      - '[close]'
    click_commands:
      - "[sound] BLOCK_ANVIL_USE"
      - "[console] minecraft:clear %player_name% potion{id:826,Amplifier:1}"
      - "[console] ei give %player_name% shar_strength"
      - "[message] Вы скрафтили &6Шар Силы"