# Example: workshop notes

A server-owned QMAW manual with an item trigger.

See [In-game manuals](https://movblock.mov/ntm-next/26.3/wiki/manuals.md) for page fields and trigger selection.

Create this pack:

## Pack layout

```text
qmaw-workshop/
  pack.mcmeta
  data/example/qmaw/workshop.json
  data/example/tags/item/manual_materials.json
```

## Pack metadata

`pack.mcmeta`:

```json
{
  "pack": {
    "description": "NTM example: server workshop manual",
    "min_format": [
      107,
      1
    ],
    "max_format": [
      107,
      1
    ]
  }
}
```

## Trigger tag

`data/example/tags/item/manual_materials.json`:

```json
{
  "values": [
    "minecraft:paper"
  ]
}
```

## Manual page

`data/example/qmaw/workshop.json`:

```json
{
  "name": "Workshop Notes",
  "icon": "minecraft:paper",
  "title": {
    "en_us": "Workshop Notes"
  },
  "content": {
    "en_us": "These notes come from the server's datapack.<br><br>Keep at least two sheets of paper together to open this page. See [[Copper|hbm:material/copper]] for the built-in material guide."
  },
  "trigger": {
    "items": "#example:manual_materials",
    "count": {
      "min": 2
    }
  },
  "aliases": "Workshop Help",
  "priority": 5
}
```

## Installation

Install the `qmaw-workshop` directory inside the world's `datapacks/` directory and run `/reload`. Hover a stack of at least two paper and press F1.
