📃Recipes menu

/ia command menu

ia_gui.yml contains settings about the /ia command GUI. It also contains the "all" category which shows every ItemsAdder item.

Default ItemsAdder pack categories are inside: plugins\ItemsAdder\data\items_packs\various_configs\ia_gui_default_categories.yml

Creating a custom category

If you want to create your own category you have to add it to your own .yml file in your namespace. This is an example:

info:
  namespace: your_namespace
categories:
  armors:
    enabled: true
    icon: "itemsadder:ruby_head"
    name: 'Armors'
    permission: "ia.menu.armors"
    #THIS IS OPTIONAL. Plugin will take the one in ia_gui.yml if not set.
    font_image:
      name: "mcguis:blank_menu"
      x_position_pixels: -16
    #THIS IS OPTIONAL. Plugin will take the one in ia_gui.yml if not set.
    title_position_pixels: 0
    items:
      - "itemsadder:ruby_sword"
      - "itemsadder:ruby_head"
      - "itemsadder:ruby_chest"
      - "itemsadder:ruby_legs"
      - "itemsadder:ruby_boots"
      - "itemsadder:spinel_head"
      - "itemsadder:spinel_chest"
      - "itemsadder:spinel_legs"

Remember to give your users permission for each category if you want them to see the categories. For example a permission is: ia.menu.armors

font_image and title_position_pixels are optional. Plugin will take the one in ia_gui.yml if not set.

This option is good if you want to have a different background for each category.

Categories with the same name and different namespace will be merged, this is helful if you have two "swords" categories. This allows you to open /ia menu and see all swords organized in the same category instead of having 2 swords categories.

Last updated