
Modrinth · Minecraft mod
Roleplayer's Dice
A roleplay server's dice roll, thrown where it can be seen: the chat line is held back, a die appears, you throw it by hand, and it lands on the number the server rolled.
Quick answer
Which Roleplayer's Dice release should I use?
Roleplayer's Dice 1.1.2 targets 1.20.5, 1.20.6, 1.21 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.
Where it goes
Is Roleplayer's Dice required on the client, server, or both?
It must be installed on the client. Do not install it on the dedicated server.
This file is marked client-only.
What else does Roleplayer's Dice 1.1.2 need?
1.1.2. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.
1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Roleplayer's Dice without breaking your instance.
Built for Roleplayer's Dice 1.1.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.1.2. It targets 1.20.5, 1.20.6, 1.21 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.
- 03
Put it on the correct side
It must be installed on the client. Do not install it on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.1.2. It opens that exact file at the source.
About this project
What does Roleplayer's Dice add?
Roleplayer's Dice
Your roleplay server prints [13 out of 20] in the chat. This mod holds that line back, throws a die for it, and lets the line through once the die has landed on the thirteen.
Client side only. The server is never told the mod exists, needs no plugin, and nothing about the roll changes – the number was decided the moment the command was sent. The mod only refuses to spoil it.
How a roll goes
You type /dice 20 strength of the blow. The command goes to the server untouched; the mod merely notes that it went, and out of what.
The server answers with something like Eliandrelle von Silverheim strength of the blow [13 out of 20]. That line does not reach the chat. Instead:
A die appears in the middle of the screen, your name and what you are rolling for above it. It does not hang there like a picture: it turns slowly, shivers, hops every couple of seconds and lands with a rattle – and the longer it is ignored, the more impatient it gets. A ring closes around it, because nothing waits forever.
You throw it. Click and it goes. Or hold the button and the die is in your hand: the camera freezes, a pointer appears, and the die follows it a moment late – that lag is the weight of the thing. It leans into the drag as it comes, tips over the way it is being hauled, and rocks back when you stop dead. Let go and it flies where the hand was going, as hard as the hand was going. The camera never moves, so from the outside a player throwing a die stands still instead of jerking their head at nothing.
It lands where you threw it. A knock, and the number, large, on the face. Then it holds still long enough to be read, walks back to the middle, and only then does everything else arrive at once – the colour, the glow, the sound and the words: critical failure / failure / success / critical success, and 13 out of 20 beneath.
Then it fades, and the line it was standing in for goes into the chat exactly as the server wrote it, colours, hovers, clickable pieces and all.
The number is the server's number
The die tumbles about a random axis and is guided onto its face over the last third of the throw, so it lands on precisely what the server rolled – upright, square to the camera, rather than at whatever angle it happened to stop at.
The faces carry different numbers, like a real die: drawn without repeats, and the number that came up is swapped onto the winning face rather than written over it. Roll d100 on a twenty-sided body and it carries twenty different numbers out of the hundred. A six-sided die shows pips, not digits, unless you would rather it did not.
Everyone's die is their own colour
Each player's die takes its colour from their UUID – the same colour Voice Subtitles gives their speech. Whoever speaks in pale green throws pale green dice, and in a square where ten people are rolling that is clearer than any heading.
Other people's rolls come up small and out of the way by default: a little die by the edge, no dimming, no waiting to be clicked – it is not yours to throw. Turn that off and their rolls play out full size like your own.
Getting out of one
Escape puts the die away and prints the result at once, without opening the game menu. Taking damage does the same, immediately: a die in the middle of a dimmed screen is far too good a cover for whoever just walked up behind you.
And nothing is ever lost. A die nobody clicks throws itself on a timeout, a roll that cannot be shown is released on the spot, and everything still held is printed when you leave the server.
Fitting it to your server
The pattern the mod reads, the command names it watches, the shapes, the sizes, the sounds, the colours and every timing are in the settings – under Mod Menu with Cloth Config, or through a screen of the mod's own if you have neither.
Out of the box it reads [13 out of 20], [13 of 20] and [13/20], and answers to /dice, /roll and their Russian equivalents. It understands /dice 20, /dice d20 and /dice 2d6 alike.
/rpdice demo throws a die that answers to nothing, so you can set the sliders against the thing they describe.
Teaching it how your server writes a roll
Every plugin words it differently, so the line the mod looks for is a setting: Result pattern, a regular expression with two capture groups – the number that came up first, the size of the die second. That is the whole contract. The default is
\[\s*(-?\d+)\s*(?:из|out\s+of|of|/)\s*(-?\d+)\s*]
and here is what to write when your server does something else:
| The server prints | Pattern |
|---|---|
Kara persuasion [13 out of 20] |
the default |
Kara persuasion [13/20] |
the default |
Kara rolls 13 (d20) |
(\d+)\s*\(\s*d(\d+)\s*\) |
Kara rolled a 13 on a d20 |
rolled a (\d+) on a d(\d+) |
❰ Kara ❱ 13 ⁄ 20 |
(\d+)\s*[/⁄]\s*(\d+) |
Kara: 13 (max 20) |
(\d+)\s*\(max\s*(\d+)\) |
Five things worth knowing before you write your own:
- The pattern is searched for, not matched against the whole line. It only has to turn up somewhere in it.
- Start it at the number, not at the start of the line. Everything in front of the match is taken as the name and what the roll was for, and that is what ends up above the die.
- Both numbers have to be in the line. The size is how the mod knows the roll is answering your command rather than somebody else's a second earlier, so a server that prints only the result cannot be followed.
- It is already case insensitive,
из,ИЗandИзalike. No need for(?i). - Typed in the settings screen, backslashes go in once:
\[\s*(\d+). Editingconfig/roleplayers_dice.jsonby hand, JSON wants them doubled:"\\[\\s*(\\d+)". A pattern that does not compile is quietly ignored in favour of the default, so a typo cannot take the chat down with it.
Then roll once. If the die appears, the pattern found the line; if the roll goes straight into the chat as it always did, it did not.
Source and licence
Codeberg – LGPL 3.0 or later.
Project description from Modrinth.
Pick your setup
Roleplayer's Dice by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.11
1 loader build1.21.10
1 loader build1.21.9
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader buildShowing the newest 12 of 14 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Roleplayer's Dice versions and loaders
1.1.2
roleplayers-dice-1.1.2+1.20.5-1.21.11.jar
19 Aug 2026
1.1.1
roleplayers-dice-1.1.1+1.20.5-1.21.11.jar
19 Aug 2026
1.1.0
roleplayers-dice-1.1.0+1.20.5-1.21.11.jar
19 Aug 2026
1.0.0
roleplayers-dice-1.0.0+1.20.5-1.21.11.jar
7 Aug 2026
Looking for an older file? The official Modrinth project page is in Resources.




