Set Editor
Belongs to: Editor GUI · Related: Set
The set editor lets you create sets, bind members, and arrange the bonuses for each piece count, all from a GUI. Enter the set hub (SetHubGui) via [Set] in the item editor.
1. Set Hub (SetHub)
On entry, different options are shown depending on whether the current item already belongs to a set:
- Item not in any set:
- Create set (
SetCreateFlow): chat-inputSet ID+Display name. - Bind to existing set (
SetBindGui): pick an existing set from a paginated list.
- Create set (
- Item already in a set: shows the current set info; you can Edit set / Unbind / Rebind.
2. Edit Set (SetEditGui)
| Slot | Field | Interaction |
|---|---|---|
| 4 | Set icon / name (preview) | Read-only |
| 19 | Display name | Chat input |
| 21 | Icon material | Chat-input material name |
| 23 | Member pieces (SetPieceGui) | Paginated add/remove of member item IDs |
| 25 | Bonuses (SetBonusListGui) | Paginated editing of each piece-count bonus |
| 30 | Add Lore line | Chat input |
| 32 | Clear Lore | Instant |
| 48 | Delete set | Shift + right-click to confirm |
Writes displayName / icon / belongingPieces / lore / bonuses into the SetDefinition.
🖼️ [Image placeholder] Set editing interface (member pieces, bonus-tier list) · suggested
assets/editor-set.png
3. Edit a Bonus Tier (SetBonusEditGui)
After entering a tier (such as "4 pieces"):
| Slot | Field | Interaction |
|---|---|---|
| 10 | Activation piece count | Chat input |
| 12 | Bonus name | Chat input |
| 14 | Add Lore | Chat input |
| 16 | Clear Lore | Instant |
| 29 | Potion effects (SetBonusEffectGui) | Add: effect name → amplifier level |
| 31 | Attributes (SetBonusAttributeGui) | Add: key → value |
| 33 | Abilities (SetBonusAbilityGui) | Add: trigger → payload |
Writes pieces / name / lore / effects / attributes / abilities into the SetBonus.
For the meaning of these fields, see Set.
4. Persistence
- Sets are stored in
sets/<SetID>.yml. - An item's membership is written into the set's
belonging_pieces(bidirectional reference: the item points to the set ID, the set points to the item). - Sets are global: binding / editing automatically updates the set YAML, with no need to save the item separately.
5. Typical Flow
Item editor → [Set]
→ Create set → input warrior_set / Warrior Set
→ Edit set
→ [Member pieces] add warrior_helmet, warrior_chestplate, ...
→ [Bonuses] create "2 pieces" → attribute physical_damage=5
→ create "4 pieces" → attribute physical_damage=10, effect SPEED=1, ability right_click→Burst
→ Done (auto-saved to sets/warrior_set.yml)Next Steps
- Set: set mechanics and YAML
- Action Editor: the handlers used by set abilities