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.
`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.
2d20kh1, 4d6dl1 | keep or drop highest or lowest |
1d6!, 1d6!! | exploding and compounding dice |
4d6r, 4d6r<3 | rerolls |
5d10>=8 | count successes |
4dF, 1d66%, 1dS | Fate, d66, Fantasy AGE stunt dice |
2g1y2p | Genesys and Star Wars narrative dice |
1d20 + dex | a number from the note's frontmatter or a field |
Point a roll at a note and it picks from what is inside:
`dice: [[Encounters#Forest]]` picks a section under that heading; 3d[[Encounters]] picks three different ones.`dice: [[Loot^gems]]|Item` picks a row of the table with that block id, and just its Item column.`dice: #npc` rolls on every note with that tag, with no other plugin needed.More on rolling random tables.
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.
`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.
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.
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.