# Guides

## How do you get  item ID?

Hold the item that you need the ID from and run **`/shop iteminfo`**. This will send  you a message in chat letting you know the name and ID. This is very helpful when working on the main menu.

## How do you create a new category?

Open your **`menus.yml`** file. In that file you'll want to add in your new category like shown below. You can create unlimited menus and category items. To set the main menu input **`main-menu: true`** like shown below.

```
  item-menu:
    main-menu: true
    title: '&2&lShop &e➔ &2&lCategories'
    size: 45
    items:
      '1':
        name: '&c&lRedstone Category'
        material: REDSTONE
        menu-slot: 10
        shop: redstone-shop
        lore:
          - '&e▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'
          - '     &6-= &2&lDescription &6=-'
          - '&7&oThis category is stocked with'
          - '&7&oredstone items.'
          - '&e▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'
```

## How do you create a new sub menu?

Open your **`menus.yml`** file. In that file you'll need to find the category item you would like to make open a sub menu. Once you've made or found it simply replace **`shop`** with **`sub-menu`**.  After that you'll also need to create the submenu. So under the key **`menus`** in the **`menus.yml`** you'll need to make another menu named whatever you made the sub-menu name, in this examples it's **`custom-menu-name`**. After that create your menu as you wish and reload the plugin when you're done.

{% hint style="info" %}
If you're sub-menu size is lager than 9 the back button will automatically be added at the middle bottom of the sub-menu. Also make sure you set the inventory space 9-54 only using a 9 denominator (9, 18, 27, 36, 45, 54).
{% endhint %}

```
menus:
  main-menu:
    title: '&2&lShop &e➔ &2&lCategories'
    size: 45
    items:
      '1':
        name: '&c&lRedstone Category'
        material: REDSTONE
        menu-slot: 10
        sub-menu: custom-menu-name
        lore:
          - '&e▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'
          - '     &6-= &2&lDescription &6=-'
          - '&7&oThis category is stocked with'
          - '&7&oredstone items.'
          - '&e▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'
  custom-menu-name:
    title: '&2&lShop &e➔ &2&lSub Menu &e(1)'
    size: 45
    items:
      '1':
        name: '&c&lTest Sub Menu'
        material: DIAMOND_BLOCK
        menu-slot: 10
        shop: test-shop
        lore:
          - '&e▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'
          - '     &6-= &2&lDescription &6=-'
          - '&7&oYou can make unlimited menus.'
          - '&e▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'
```

## How do you create a new shop?

Well actually when create a new menu or sub-menu with a category item you just need to click it in the menu in-game one time after it's been created and the plugin will generate the info needed in the **`shops.yml`**. You can also input this manually like listed below.

```
shops:
  redstone-shop:
    items:
      '1':
        material: REDSTONE
        buy: 100.0
        sell: 20.0
```
