分类

制作了这么多的物品,我们打开 /ia 却发现什么也没有,是不是出问题了呢?其实不是,我们需要将这些物品添加到分类中。

分类不同于 namespace,尽管我非常建议你一个分类一个 namespace,但是实际上一个分类可以包含多个 namespace 下的物品。

打开任意一个物品配置,添加如下内容:

categories:
  icons:
    enabled: false
    skip_if_already: false
    icon: mcicons:icon_web
    name: display-category-icons
    permission: ia.menu.icons
    items:
      - mcicons:icon_left_grey
      - mcicons:icon_left_blue
      - mcicons:icon_right_grey
      - mcicons:icon_right_blue
      - mcicons:icon_up_grey
      - mcicons:icon_up_blue
      - mcicons:icon_next_white
      - mcicons:icon_next_orange
      - mcicons:icon_back_white
      - mcicons:icon_back_orange
      - mcicons:icon_cancel
      - mcicons:icon_confirm
      - mcicons:icon_lock
      - mcicons:icon_unlock
      - mcicons:icon_web
      - mcicons:icon_ender_chest
      - mcicons:icon_refresh
      - mcicons:icon_time_day
      - mcicons:icon_time_midnight
      - mcicons:icon_time_night
      - mcicons:icon_time_noon
      - mcicons:icon_time_sunrise
      - mcicons:icon_time_sunset
      - mcicons:icon_toggle_off
      - mcicons:icon_toggle_on
      - mcicons:icon_arrow_chest
      - mcicons:icon_plus
      - mcicons:icon_color_picker
      - mcicons:icon_comment
      - mcicons:icon_search
  buildersbasics:
    enabled: true
    skip_if_already: false
    icon: "buildersbasics:abyssal_lantern"
    name: '建筑'
    items:
      - "buildersbasics:abyssal_lantern"
      - "buildersbasics:abyssal_lantern_top"
      - "buildersbasics:acacia_boards"
      - "buildersbasics:andesite_bricks"
      - "buildersbasics:andesite_pillar"
      - "buildersbasics:andesite_pillar_top"
      - "buildersbasics:birch_boards"
      - "buildersbasics:black_purpur_block"
      - "buildersbasics:black_terracotta_bricks"
      - "buildersbasics:blue_purpur_block"
      - "buildersbasics:blue_terracotta_bricks"
      - "buildersbasics:brown_purpur_block"
      - "buildersbasics:brown_terracotta_bricks"
      - "buildersbasics:chiseled_andesite"
      - "buildersbasics:chiseled_dark_prismarine"
      - "buildersbasics:chiseled_dark_prismarine_top"
      - "buildersbasics:chiseled_diorite"
      - "buildersbasics:chiseled_granite"
      - "buildersbasics:chiseled_prismarine"
      - "buildersbasics:cobblestone_bricks"
      - "buildersbasics:cyan_purpur_block"
      - "buildersbasics:cyan_terracotta_bricks"
      - "buildersbasics:dark_oak_boards"
      - "buildersbasics:dark_prismarine_bricks"
      - "buildersbasics:dark_prismarine_pillar"
      - "buildersbasics:dark_prismarine_pillar_top"
      - "buildersbasics:dark_prismarine_tiles"
      - "buildersbasics:diorite_bricks"
      - "buildersbasics:diorite_pillar"
      - "buildersbasics:diorite_pillar_top"
      - "buildersbasics:driftwood_boards"
      - "buildersbasics:end_stone_pillar_eq"
      - "buildersbasics:end_stone_pillar_fi"
      - "buildersbasics:end_stone_pillar_in"
      - "buildersbasics:end_stone_pillar_ox"
      - "buildersbasics:end_stone_pillar_top"
      - "buildersbasics:end_stone_pillar_ve"
      - "buildersbasics:end_stone_tiles"
      - "buildersbasics:golden_trapdoor"
      - "buildersbasics:granite_bricks"
      - "buildersbasics:granite_pillar"
      - "buildersbasics:granite_pillar_top"
      - "buildersbasics:gray_purpur_block"
      - "buildersbasics:gray_terracotta_bricks"
      - "buildersbasics:green_purpur_block"
      - "buildersbasics:green_terracotta_bricks"
      - "buildersbasics:gtp_pillar_black"
      - "buildersbasics:gtp_pillar_black_top"
      - "buildersbasics:gtp_pillar_blue"
      - "buildersbasics:gtp_pillar_blue_top"
      - "buildersbasics:gtp_pillar_brown"
      - "buildersbasics:gtp_pillar_brown_top"
      - "buildersbasics:gtp_pillar_cyan"
      - "buildersbasics:gtp_pillar_cyan_top"
      - "buildersbasics:gtp_pillar_gray"
      - "buildersbasics:gtp_pillar_gray_top"
      - "buildersbasics:gtp_pillar_green"
      - "buildersbasics:gtp_pillar_green_top"
      - "buildersbasics:gtp_pillar_light_blue"
      - "buildersbasics:gtp_pillar_light_blue_top"
      - "buildersbasics:gtp_pillar_light_gray"
      - "buildersbasics:gtp_pillar_light_gray_top"
      - "buildersbasics:gtp_pillar_lime"
      - "buildersbasics:gtp_pillar_lime_top"
      - "buildersbasics:gtp_pillar_magenta"
      - "buildersbasics:gtp_pillar_magenta_top"
      - "buildersbasics:gtp_pillar_orange"
      - "buildersbasics:gtp_pillar_orange_top"
      - "buildersbasics:gtp_pillar_pink"
      - "buildersbasics:gtp_pillar_pink_top"
      - "buildersbasics:gtp_pillar_purple"
      - "buildersbasics:gtp_pillar_purple_top"
      - "buildersbasics:gtp_pillar_red"
      - "buildersbasics:gtp_pillar_red_top"
      - "buildersbasics:gtp_pillar_white"
      - "buildersbasics:gtp_pillar_white_top"
      - "buildersbasics:gtp_pillar_yellow"
      - "buildersbasics:gtp_pillar_yellow_top"
      - "buildersbasics:infernal_lantern"
      - "buildersbasics:jungle_boards"
      - "buildersbasics:light_blue_purpur_block"
      - "buildersbasics:light_blue_terracotta_bricks"
      - "buildersbasics:light_gray_purpur_block"
      - "buildersbasics:light_gray_terracotta_bricks"
      - "buildersbasics:lime_purpur_block"
      - "buildersbasics:lime_terracotta_bricks"
      - "buildersbasics:magenta_purpur_block"
      - "buildersbasics:magenta_terracotta_bricks"
      - "buildersbasics:mossy_cobblestone_bricks"
      - "buildersbasics:oak_boards"
      - "buildersbasics:orange_purpur_block"
      - "buildersbasics:orange_terracotta_bricks"
      - "buildersbasics:pink_purpur_block"
      - "buildersbasics:pink_terracotta_bricks"
      - "buildersbasics:polished_stone"
      - "buildersbasics:prismarine_pillar"
      - "buildersbasics:prismarine_pillar_top"
      - "buildersbasics:prismarine_tiles"
      - "buildersbasics:purple_purpur_block"
      - "buildersbasics:purple_terracotta_bricks"
      - "buildersbasics:red_purpur_block"
      - "buildersbasics:red_terracotta_bricks"
      - "buildersbasics:sandstone_pillar"
      - "buildersbasics:small_andesite_bricks"
      - "buildersbasics:small_diorite_bricks"
      - "buildersbasics:small_end_stone_bricks"
      - "buildersbasics:small_granite_bricks"
      - "buildersbasics:small_permafrost_bricks"
      - "buildersbasics:small_stone_bricks"
      - "buildersbasics:smooth_stone"
      - "buildersbasics:spruce_boards"
      - "buildersbasics:stone_pillar"
      - "buildersbasics:stone_pillar_top"
      - "buildersbasics:terracotta_bricks"
      - "buildersbasics:white_purpur_block"
      - "buildersbasics:white_terracotta_bricks"
      - "buildersbasics:wisteria_boards"
      - "buildersbasics:yellow_purpur_block"
      - "buildersbasics:yellow_terracotta_bricks"

在所给示例中,有 iconsbuildersbasics 两个分类id,分类下还有如下选项:

  • enabled:是否启用该分类。

  • icon:菜单内显示的物品,使用 namespace:id 格式。

  • name:分类的名称。

  • items:不用我多说了吧。

最后更新于