> For the complete documentation index, see [llms.txt](https://linparlab.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linparlab.gitbook.io/docs/configuration/materials.md). Agents can also search and read this documentation through its [MCP server](https://linparlab.gitbook.io/docs/~gitbook/mcp).

# materials.yml

The top-level rules map contains named rule sections. Replace the existing fishing rule under rules to offer a second payment.

```yaml
rules:
  fishing:
    items: [FISHING_ROD]
    ingredients: [STRING, STICK]
    durability-per-material: 16
```

| Key                     | Meaning                                                                |
| ----------------------- | ---------------------------------------------------------------------- |
| items                   | Nonempty list of eligible materials, provider IDs or material mappings |
| ingredients             | Nonempty ordered list of alternative payments                          |
| durability-per-material | Base durability per unit from 1 to 1000000                             |
| enabled                 | Optional flag. Defaults to true.                                       |
| permission              | Optional permission required to repair under this rule                 |

The first alternative that can cover the quoted units is used. If none can cover it, the quote is unavailable. Payment can use several eligible stacks of that alternative. The plugin scans the 36 storage slots, including the hotbar, and excludes the selected equipment slot. Check existing rules before adding an item. Duplicate selectors across rules are rejected.

See [Custom Model Data](https://linparlab.gitbook.io/docs/integrations/custom-model-data.md), [Custom Item Providers](https://linparlab.gitbook.io/docs/integrations/custom-items.md) and [Repair Rules & Examples](https://linparlab.gitbook.io/docs/reference/repair-rules.md).
