main_shop.yml

guis:
  mainShop: #Don't change this name is an id of GUI
    displayname: '&a&lShop'
    size: 27
    empty_slots:
      id: 7 #The id is an id of STAINED_GLASS_PANE like 7 id is gray color
      material: STAINED_GLASS_PANE
    slots:
      10:
        material: BOW
        displayname: '&a&lBows'
        click_action:
          type: OPEN_MENU
          run_action:
            - 'bowsShop'
        lore:
          - '&7Right click to open bow shop'
      12:
        material: DIAMOND_SWORD
        displayname: '&a&lSwords'
        click_action:
          type: OPEN_MENU
          run_action:
            - 'swordsShop' #Is an action argument. The swordsShop is GUI which open when player will click on 12 slot
        lore:
          - '&7Right click to open swords shop'
      14:
        material: IRON_CHESTPLATE
        displayname: '&a&lArmors'
        click_action:
          type: OPEN_MENU
          run_action:
            - 'armorsShop'
        lore:
          - '&7Right click to open armors shop'
      16:
        material: COOKED_BEEF
        displayname: '&a&lFood'
        click_action:
          type: OPEN_MENU
          run_action:
            - 'foodShop'
        lore:
          - '&7Right click to open food shop'

Last updated