A dice roller for Obsidian that rolls right in your notes

Dice Tray is a free plugin for Obsidian. Write `dice: 2d20kh1 + 5` and the note shows the result as a small chip you can click to roll again; hover it, or tap it on a phone, to see every die. It reads the same notation as the Dice Roller plugin's dice: blocks, so notes written for that plugin keep working here.

Get Dice Tray, freeIn Obsidian: Settings, Community plugins, Browse, search Dice Tray, then Install and Enable. Try it in your browser first: it runs the real plugin code over a sample note.

A note called Session 12 prep with dice results shown as chips inline: an attack roll, damage, stats, advantage, exploding dice, success counting, Fate and percentile dice, then results rolled from an Encounters note: a forest encounter, weather from a lookup table, loot and its value, three encounters with no repeats, and a whole section at random
Rolls, lookup tables and random encounters inside a note.

Writing a roll

`dice: 3d6 + 2`
`dice: (1d4 + 2) * 2`

```dice
2d20kh1 + 5
8d6
```

Inline rolls show as chips in Live Preview as well as reading view. Put the cursor on one and its code comes back to edit. A lone d20 glows green on a natural 20 and red on a natural 1.

Notation

2d20kh1, 4d6dl1keep or drop highest or lowest
1d6!, 1d6!!exploding and compounding dice
4d6r, 4d6r<3rerolls
5d10>=8count successes
4dF, 1d66%, 1dSFate, d66, Fantasy AGE stunt dice
2g1y2pGenesys and Star Wars narrative dice
1d20 + dexa number from the note's frontmatter or a field

Rolling on tables, notes and tags

Point a roll at a note and it picks from what is inside:

More on rolling random tables.

Dice you can watch

Click a roll, and the dice tumble across the window and land on what came up: d4, d6, d8, d10, d12 and d20 as solids, d100 as a tens and a ones d10, and Fate dice as d6s marked − and +. Dropped dice land dimmed. Turn it off with Throw dice in the settings; it's off anyway when your system asks for less motion.

Rolls that stay

`dice+: 1d20 + 5` rolls once and writes the result after it, so the chip shows the same number every time the note opens. `dice-mod: 4d6dl1` replaces itself with the result, for stats or loot that should not change.

The dice panel

For rolls that aren't in a note, click the dice icon in the ribbon. Tap dice to add them, set a modifier, roll a d20 at advantage or disadvantage, or type any formula. Save keeps a roll you make often as a button, and This session lists every roll from the panel.

Dice Tray does not use the network, has no accounts, and collects nothing.

On your players' phones

DM Screen, from the same maker, shows the rolls you click on your players' phones. They open a link or a QR code in any phone browser, with nothing to install. DM Screen is $12 once with a free one-hour trial. Dice Tray stays free.

Get Dice Tray, free