# Commands
Two commands: `/chest` for managing loot tables, `/populate` for using them.
## Building a loot table
```
/chest
```
Opens the menu. Make a table, drop items in, and give each one a weight. Higher weight means it turns up more often, so a weight of 10 appears roughly ten times as often as a weight of 1.
Edited the files by hand instead? Pick up the changes without restarting:
```
/chest reload
```
## Filling containers
Everything within 50 blocks of you:
```
/populate nearby 50 my_loot_table
```
That's the one you'll use most. The others are for when you're not standing where the loot goes.
**Around a specific point:**
```
/populate at world 0 64 0 200 dungeon_loot
```
World, then coordinates, then how far out, then the table.
**Inside a box**, given two opposite corners:
```
/populate within world 100 60 100 150 70 150 dungeon_loot
```
You can use `~` for coordinates relative to where you're standing:
```
/populate within world ~-25 ~ ~-25 ~25 ~10 ~25 rare_drops
```
Console has to use real numbers, since it isn't standing anywhere.
**Your WorldEdit selection**, if you have WorldEdit or FastAsyncWorldEdit:
```
/populate selection rare_drops
```
Radius can be anything from 1 to 2000.
## Mixing tables
Name as many as you like and Chest draws from all of them together:
```
/populate nearby 100 common_drops rare_drops minecraft:chests/simple_dungeon
```
Vanilla tables work anywhere your own do.
## Changing what gets filled
Flags go on the end.
| Flag | What it does |
|---|---|
| `-c` | Include chests |
| `-b` | Include barrels |
| `-s` | Include shulker boxes |
| `-f` | Fill containers even if they already have things in them |
| `-w` | Empty containers before filling them |
| `-l <n>` | Fewest items per container, default 3 |
| `-h <n>` | Most items per container, default 6 |
Say nothing about container types and you get chests and barrels.
Some worked examples:
```
/populate nearby 100 dungeon_loot -c -f -l 2 -h 8
```
Chests only, refill even the full ones, between 2 and 8 items each.
```
/populate at world 0 64 0 200 minecraft:chests/simple_dungeon my_custom_table -b -w
```
Barrels only, emptied first, stocked from a vanilla table and one of yours together.
```
/populate selection rare_drops common_drops -c -b -s -l 1 -h 4
```
Everything in your WorldEdit selection, one to four items each.
## Quiet mode
Filling a big area reports progress as it goes. To stop that:
```
/chest silent
```
Run it again to turn it back on.
## Checking the version
```
/chest version
```
## Permissions
| Permission | Covers |
|---|---|
| `lodestone.chest.commands.chest` | `/chest` and the menu |
| `lodestone.chest.commands.reload` | `/chest reload` |
| `lodestone.chest.commands.silent` | `/chest silent` |
| `lodestone.chest.commands.populate` | Every `/populate` command |
## Related Pages
- [[Chest/Server Owners/Overview]], what Chest does
- [[Chest/Server Owners/Configuration]], where loot tables are kept