August 8, 2026 · The Minely team
How to make a murder mystery plugin with AI (roles, rounds, voting)
Murder Mystery is social deduction translated to Minecraft: someone here is the killer, and everyone is lying about it. The systems are role assignment, a weapon economy, and win conditions per role — small parts that produce emergent chaos every round.
What a murder mystery plugin actually is
A murder mystery plugin assigns hidden roles each round: one murderer, one detective with a bow, and innocents. The murderer kills with a one-hit knife; the detective hunts them; innocents survive, vote, and help the detective. Each role has its own win condition and its own reason to lie.
How it works under the hood
Role assignment is a random pick at round start, told to each player privately. The knife kills in one hit but misusing it on an innocent (or getting seen) loses the game for the murderer. The detective's bow one-shots too, but killing an innocent with it eliminates the detective. A round timer plus per-role win detection (murderer eliminates everyone, detective+innocents survive or the murderer dies) drives the end. Anonymous names and a voting phase complete the paranoia.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a murder mystery plugin with secret roles, a one-hit knife, a detective bow, round timer, per-role win conditions, anonymous names, and a voting phase
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Implement role assignment with private notifications.
- Build the knife and bow rules with their punishment logic.
- Add per-role win detection and the round timer.
- Wire anonymous names (skins/nameplates off or generic).
- Add the voting phase for post-round accusations.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
Rounds of 3 to 5 minutes with 8 to 12 players is the proven format. One murderer per 8 to 10 innocents keeps games fair. Anonymous skins and equal-strength weapons make suspicion social, not mechanical — the talk is the game.
Tips that save you a rebuild
- Hide roles from the tab list and nameplates or the whole game collapses.
- Punish wrong kills hard; random stabbing should lose games, not win them.
- Give innocents a small task (collect gold for a bow) so hiding is not the only strategy.
- Log accusations per round; it is the funniest telemetry you will ever collect.
Questions people ask
Can I have multiple murderers?
Yes — two murderers at 12+ players with no knowledge of each other is the classic big-lobby mode.
What about special innocents?
Roles like a medic (one revive) or a tracker (footprint glow) add texture — keep them rare.
How do I stop ghost callouts?
Dead players get no chat with the living; a separate spectator chat solves it.
If you can describe it, you can ship it. Take the prompt from this guide, tweak one detail, and build your version tonight.
