> 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/integrations/custom-model-data.md). Agents can also search and read this documentation through its [MCP server](https://linparlab.gitbook.io/docs/~gitbook/mcp).

# Custom Model Data

Use a material mapping with modelData to match a specific numeric model. Mappings without modelData behave like ordinary material entries. Provider IDs and mappings can appear in the same rule.

```yaml
rules:
  custom_shovel:
    items:
      - material: DIAMOND_SHOVEL
        modelData: 10003
    ingredients:
      - material: STICK
        modelData: 10004
    durability-per-material: 12
```

| Server version | Matching behavior                                                                                   |
| -------------- | --------------------------------------------------------------------------------------------------- |
| 1.8–1.13       | Numeric selectors are skipped with a warning                                                        |
| 1.14–1.21.3    | Uses the integer metadata. Tested on Paper 1.20.4                                                   |
| 1.21.4–26.3    | Requires exactly one float representing the configured 32-bit integer exactly. Tested on Paper 26.3 |

String-only, fractional and multi-float model values do not match a numeric selector. Other component fields can coexist and are preserved. The exact numeric tool selector takes priority over a generic material rule, even if the specific rule denies access. Recognized provider items need a provider selector. CMD is a configurable visual value. Use a provider ID where the origin of an item matters.

Check the held item using `/repair debug item`. See [materials.yml](https://linparlab.gitbook.io/docs/configuration/materials.md).
