Item Grouping
Organize and Manage Your Custom Items
Overview
The item grouping system allows you to organize related items together for easier management and browsing. Through grouping, you can create a hierarchical item directory, making it simpler for players to find the items they need.
Basic Concepts
What is Item Grouping
Item grouping refers to classifying and organizing items based on type, purpose, or other criteria. Each group can contain multiple items and can also include sub-groups, forming a tree-like structure.
Functions of Grouping
- Item Organization: Manage a large number of items by categorizing them into groups
- Easy Browsing: Players can quickly find items through the group menu
- Hierarchical Management: Support multi-level grouping to create complex item directories
Creating Item Groups
Method 1: Folder-Based Grouping
The simplest way to group items is by using a folder structure:
The system automatically creates groups based on the folder structure, with folder names serving as group names.
Method 2: Configuration File-Based Grouping
Define custom groups using the __group__
node in YAML files:
Group Configuration Options
Basic Configuration
Configuration Item | Description | Example |
---|---|---|
name | Display name of the group | 'Weapon & Armor' |
priority | Sorting priority (smaller numbers appear first) | 1 |
display | Display icon of the group in the menu | See example below |
Display Configuration
Group Hierarchical Structure
Multi-Level Grouping
You can create nested multi-level group structures:
The system automatically handles parent-child relationships and generates a complete path structure.
Group Menu System
Auto-Generated Group Menu
The system automatically creates a browsable menu interface for groups:
- Group Icon: Displays a representative icon for the group
- Item Count: Shows the number of items contained in the group
- Hierarchical Navigation: Supports switching between different levels
Using the Group Menu
Players can open the group menu using the following commands:
Group Display Icons
Auto-Generated Icons
If no custom icon is configured, the system automatically generates a group icon:
- With Items: Randomly selects one item from the group as the icon
- Without Items: Uses the default minecart with chest icon
- Display Info: Automatically adds the group name and item count
Custom Icons
You can customize the icon in the group configuration:
Practical Group Examples
Group by Type
Group by Tier
Group by Function
Usage Tips
1. Logical Group Structure
Create a clear hierarchical group structure:
2. Priority Settings
Control the display order of groups in the menu using priority:
3. Descriptive Naming
Use clear group names and descriptions: