Pets Open Menu
Open the pet selection menu
字段
| 字段 | 类型 | 默认值 | 描述 | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
menu | PetMenuSettings | — | Permet de personnaliser les slots, boutons et visuels du menu des familiers.
|
| 字段 | 类型 | 默认值 | 描述 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
slots | List<Int> | DEFAULT_PET_SLOTS | — | ||||||||||||
lockedSlots | List<LockedSlotSettings> | empty | —
|
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
slot | Int | 0 | — |
permission | String | — | — |
storageRef<PetStorageEntry>rowsInt6maxSlotsIntDEFAULT_PET_SLOTS.sizeTypeWriter 通用字段(criteria, modifiers, triggers)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Trigger this action from an NPC, an item or a command to open the companion menu for the triggering player. In menu:
storage— the Pet Storage artifact. When set, the extension switches to it and reloads the profiles of online players. Set it on at least one menu action.slots— inventory slots where pets appear. These also decide where tokens can be placed.lockedSlots— aslotand apermission. Players without the permission see a locked marker and cannot fill that slot.maxSlots— maximum number of slots used (default 21, minimum 1). Only the firstmaxSlotsentries ofslotsare laid out and can receive a new pet; pets already owned beyond that are shown in free cells of the menu instead of being hidden.rows— height from 1 to 6.
The last opened menu configuration is remembered, so the menu also opens with the same layout from /pets open.