> For the complete documentation index, see [llms.txt](https://wiki.flrp.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.flrp.dev/free/economobs/tutorials/assigning-loot-tables.md).

# Assigning Loot Tables

## Introduction

With 2.0.0, the mobs.yml has completely changed and expanded. You now have to assign each mob a loot table (or use the wildcard).

## Assignment

In mobs.yml, you can assign mobs multiple loot tables. Each bundle of Loot Tables makes a Loot Container, which you may see logged on startup.\
\
This is the format to assign loot tables to mobs.&#x20;

```yaml
mobs:  
  PIG:
    tables:
      '1':
        table: money_table
```

Every loot table that you define in this file should be an existing loot table in loot.yml. The plugin creates the loot tables, then assigns each loot table to their respective loot containers.

To list multiple tables, you can do something as simple as this.

```yaml
mobs:  
  PIG:
    tables:
      '1':
        table: money_table
      '2':
        table: item_table
      '3':
        table: full_table
```

## Wildcard Table (Default Loot Table)

This table is not enabled by default, and it is something you have to add in to enable. This option allows you to easily assign a set of tables for mobs that share the same loot tables to avoid redundancy.\
\
Here is how it should be structured:

```yaml
default:
  tables:
    '1':
      table: money_table
```

In mobs.yml (or any hook file that supports table assigning) you should make a new section that starts with default. **This does not go in the list of mobs; this is its own section.**

You can add exclusions to the list as well, if you do not want a mob to have any drops at all.&#x20;

```yaml
default:
  tables:
    '1':
      table: money_table
  excludes:
    - 'PIG'  
```

## Example File

```yaml
default:
  tables:
    '1':
      table: money_table
  excludes:
    - 'PIG'  
mobs:  
  COW:
    tables:
      '1':
        table: money_table_2
  SHEEP:
    tables:
      '1':
        table: money_table_2
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.flrp.dev/free/economobs/tutorials/assigning-loot-tables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
