# Loot Chests

In AdvancedDungeonArena it's possible to create refillable loot chests inside your dungeons with Variables and custom item support.

Loot chests can be created at any container block, such as: chests, shulker boxes, barrels, furnaces.

Loot chest configurations located in the /loot_chests/ directory inside a dungeon's folder.

# Creation

Adding loot chests to a dungeon is simple:

  1. Aim at a block that is container.
  2. Run the /ada lootchest create <dungeonId> <name> command. Where dungeonId is dungeon ID, name is new loot chest ID.

Add some items to the loot chest's pool:

  1. Hold an item in the main hand.
  2. Run the /ada lootchest additem <dungeonId> <chestId> <name> <weight> command. Where dungeonId is dungeon ID, chestId is loot chest ID, name is ID for an item, weight is item weight.
  3. Repeat for all other items.

# Configuration

To configure the rest of loot chest settings, you have to go to a loot chest's configuration file.

The possible amount of items generated in a loot chest controlled by the ItemsAmount setting.

This option is Scalable. You can use Variables here.

ItemsAmount:
  Initial:
    Min: '0'
    Max: '6'
    AsInteger: true

This setting controls whether each item can be choosen only once per loot generation.

UniqueOnly: false