Skip to main content
Action entry that manually triggers a specific loot chest at runtime. Used in combination with DungeonLootChestEntry when manualMode: true.

Trigger Modes

ModeBehavior
ONCEChest spawns once per session. Subsequent triggers are ignored (default).
REPEATABLEChest can be triggered multiple times.
CONDITIONALChest only triggers if triggerCriteria are met (evaluated per activation).

Configuration

loot_chest_trigger
Map
required
Configuration for the loot chest trigger action.

Example

# The chest definition (manualMode = true)
dungeon_loot_chest:
  id: "secret_treasure"
  dungeonInstance: "ancient_temple"
  location: {x: 50, y: 70, z: 30, world: "dungeon_temple"}
  manualMode: true
  lootTable:
    - item: NETHERITE_INGOT
      dropChance: 50

# The trigger — fired when boss dies (via onEnd/onEnter triggers)
action:
  type: loot_chest_trigger
  id: "boss_treasure_trigger"
  chestEntry: "secret_treasure"
  triggerMode: ONCE
  triggerSound: "ENTITY_ENDERMAN_TELEPORT"
  triggerParticle: "PORTAL"
  broadcastMessage: "<gold>{player} unlocked the secret treasure!"