dungeonInstance | Ref<DungeonInstanceEntry> | — | The dungeon instance this chest belongs to |
location | WorldLocation | — | Location of the chest in the instance world. The yaw turns the chest: it faces back toward the direction the yaw looks at.WorldLocation (6)
| Campo | Tipo | Padrão | Descrição |
|---|
world | String | — | — | x | Int | 0 | — | y | Int | 0 | — | z | Int | 0 | — | yaw | Float | 0 | — | pitch | Float | 0 | — |
|
placementType | ChestPlacementType | BLOCK | BLOCK: place a block at the location. NPC: the chest opens when the Npc Anchor entity is right-clicked. |
storageItem | Item | — | Engine Item representing the block (CraftEngine and Nexo custom blocks supported). BLOCK mode only. |
containerTitle | String | — | Custom title for the storage container (MiniMessage, leave empty for default) |
lootTable | List<LootItem> | empty | List of possible loot itemsLootItem (5)
| Campo | Tipo | Padrão | Descrição |
|---|
item | Item | — | The item to drop | dropChance | Double | 50.0 | Chance to appear in the chest (0-100%). When the table is WEIGHTED it is the weight of the item instead. | minAmount | Int | 1 | Minimum quantity | maxAmount | Int | 1 | Maximum quantity | slot | Int | -1 | Specific slot in the chest (0-26), or -1 for random slot |
|
placementDelay | Int | 2 | Delay in seconds before placing/registering the chest (allows world loading) |
replaceExisting | Boolean | true | Replace any existing block at the location (BLOCK mode only) |
clientSide | Boolean | false | The block exists only on the screens of the run's players: nothing is placed in the world. Ignored in NPC mode. |
interactionMode | DungeonChestManager.ChestInteractionMode | — | Interaction mode: LOOT (virtual inventory) or ACTIONS (execute triggers)Valores:LOOTACTIONS |
onInteract | List<Ref<TriggerableEntry>> | empty | Triggers executed on click (ACTIONS mode only) |
disappearAfterInteract | Boolean | true | If true, the chest disappears once it is closed (once the last player looks away from a shared chest) |
manualMode | Boolean | false | If true, the chest is NOT auto-placed. Use a Loot Chest Trigger action to spawn it on demand. Exception: a chest named by a CHEST marker of a generated room template is always placed at its marker, whatever this option says (the marker is where you asked for it). |
visibility | ChestVisibility | AUTO | AUTO (default): PER_PLAYER when Client Side is on, SHARED otherwise, as before this option existed. PER_PLAYER: every player of the run opens an inventory of their own, rolled once for them. SHARED: one inventory for the whole run. |
onDisappear | OnDisappear | DROP_AT_CHEST | What happens to the items left in the chest when it disappears. DROP_AT_CHEST: they fall at the chest. GIVE_TO_PLAYER: they go to the player who closed it, and what does not fit falls at their feet. |
npcAnchor | Ref<EntityInstanceEntry> | — | NPC mode: the entity instance that opens this chest when a player of the run right-clicks it. Without it, a chest placed by an older page still opens when an entity within 2 blocks of its location is right-clicked (deprecated: set the anchor). |
lootSelection | LootSelection | INDEPENDENT | INDEPENDENT: every loot item rolls its own chance. WEIGHTED: 'Weighted Picks' distinct items are drawn, the chance of an item being its weight. |
weightedPicks | Int | 3 | Number of loot items drawn when the loot selection is WEIGHTED. |
lootTableRef | Ref<DungeonLootTableEntry> | — | A 'Dungeon Loot Table' shared with other chests and mobs. When set, it replaces the Loot Table, Loot Selection and Weighted Picks of this chest (they are then ignored). Empty = this chest's own lines. |
additionalLocations | List<WorldLocation> | empty | More places for this chest: the entry puts one chest at Location, then one at each of these. Every chest is independent: it rolls its own loot, has its own opening and vanishes on its own. A Loot Chest Trigger that names this entry makes all of them appear. Ignored in a generated dungeon (the chest stands at its marker).WorldLocation (6)
| Campo | Tipo | Padrão | Descrição |
|---|
world | String | — | — | x | Int | 0 | — | y | Int | 0 | — | z | Int | 0 | — | yaw | Float | 0 | — | pitch | Float | 0 | — |
|