当你添加了很多方块和物品,但是当你输入 /ia 查看时发现没有在菜单里面,你就很有必要编写一个 categories.yml 了,当然文件名也不一定非要是这个,可以按照以下格式编写:
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
- uildersbasics: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
在所给示例中,有 icons 和 buildersbasics 两个分类id,分类下还有如下选项:
- enabled:是否启用该分类。
- icon:菜单内显示的物品,使用 namespace:id 格式。
- name:分类的名称。
- items:物品名称。