VillagerMenuItem
Overview
Section titled “Overview”Defines villager shop menu entries for NPC merchants under VillagerData/VillagerMenuItem.xml. Each entry associates an item template with a shop type category (medal store or floating castle parts store).
Version support
Section titled “Version support”| Version | Status |
|---|---|
| v92 | Full |
| v90 | - |
| v86 | - |
DSL support
Section titled “DSL support”Entity: villagerMenuItems
Operations: create, update, delete, upsert, updateWhere
Regional variants: _CN, _JP, _KR, _NAEU, _RUS, _THA, _TW
Properties reference
Section titled “Properties reference”| Attribute | Type | Since | Required | Description |
|---|---|---|---|---|
id | int | v92 | Yes | Entry ID (primary key) |
itemTemplateId | int | v92 | No | Item template this entry references |
type | VillagerMenuItemType | v92 | No | Shop category. Defaults to MedalStore |
Enum types
Section titled “Enum types”VillagerMenuItemType
Section titled “VillagerMenuItemType”| Value | Since | Description |
|---|---|---|
MedalStore | v92 | Medal-based shop (default) |
FloatingCastlePartsStore | v92 | Floating castle parts shop |
DSL examples
Section titled “DSL examples”Create
Section titled “Create”spec: version: "1.0" schema: v92
villagerMenuItems: create: - id: 99001 itemTemplateId: 12345 type: MedalStoreUpdate
Section titled “Update”spec: version: "1.0" schema: v92
villagerMenuItems: update: - id: 99001 changes: itemTemplateId: 99999Delete
Section titled “Delete”spec: version: "1.0" schema: v92
villagerMenuItems: delete: - 99001Upsert
Section titled “Upsert”spec: version: "1.0" schema: v92
villagerMenuItems: upsert: - id: 99001 itemTemplateId: 12345 type: FloatingCastlePartsStoreUpdate where
Section titled “Update where”spec: version: "1.0" schema: v92
villagerMenuItems: updateWhere: - filter: type: MedalStore changes: itemTemplateId: 99999XML structure
Section titled “XML structure”VillagerMenuItems (root)└── VillagerMenuItem (id, itemTemplateId, type)typedefaults toMedalStorewhen omitted oncreateorupsert.- Regional variants are stored under
VillagerData/(e.g.,VillagerData/VillagerMenuItem_NAEU.xml).