Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
Mafia | Trust No One
The town sleeps peacefully, unaware of the danger hiding among its people. Every night, someone disappears. Every morning, suspicion grows. Friends become enemies, accusations turn into chaos, and nobody knows who they can trust.
In Mafia, players are secretly assigned roles and must use their abilities to survive and uncover the truth. The Mafia works together in the shadows, the Detective searches for clues, the Doctor protects the innocent, and the Town must identify the people responsible before it's too late.
A town full of secrets. A hidden Mafia. Only the truth can save you.
⛧ A Town Divided
Not everyone is who they claim to be. Each player receives a secret role that determines their abilities and their place in the game.
- Every player is secretly assigned a role.
- Each player receives a private role card.
- The Mafia team scales depending on the number of players.
- Players must work together, investigate, deceive and survive.
- The Town must identify and eliminate every Mafia member.
- The Mafia must eliminate enough Town players to take control.
Choose your words carefully. One wrong accusation could cost someone their life.
♜ Four Roles. Different Fates.
Every role has a different purpose, and every decision can change the outcome of the game.
Mafia — Work together during the night to choose a living Town player to eliminate. Stay hidden during the day and convince everyone you're innocent.
Detective — Investigate one other player each night to discover whether they are part of the Mafia. Use your information wisely, but be careful who you trust.
Doctor — Protect one living player each night, including yourself. Your choice could save someone from becoming the Mafia's next victim.
Town — You have no special night ability, but your voice and your vote matter. Discuss, question and work together to uncover the Mafia.
Every player matters. Every role has a purpose. And every night brings the town closer to its fate.
☽ Night & Day
The game moves between two phases, each bringing new decisions and new dangers.
Night
- All players receive blindness and a large NIGHT title.
- Mafia members privately choose a living Town target.
- The Detective privately investigates one other player.
- The Doctor privately protects one living player.
- Role players receive private clickable lists of available player names.
- If the Mafia's choices result in a tie, nobody is eliminated that night.
Daybreak
- Blindness clears and DAYBREAK appears.
- Players discuss what happened during the night.
- Share suspicions, defend yourself and try to uncover the Mafia.
- Everyone votes using private clickable player lists.
- Votes can be changed until the host closes voting.
- If the town vote ends in a tie, nobody is eliminated that day.
- Eliminated players have their roles revealed.
The night reveals actions. The day reveals suspicion. But the truth is never guaranteed.
✦ The Fight for Control
Both sides have different paths to victory.
- Mafia Victory: The living Mafia members equal or outnumber the living Town players.
- Town Victory: Every Mafia member has been eliminated.
Every elimination changes the balance of power. Protect your allies, question your enemies and think carefully before casting your vote.
✦ Built for Multiplayer Events
The Mafia datapack provides the tools needed to manage a full game directly in Minecraft.
- Secret role assignment.
- Private role cards for every player.
- Mafia team size that scales with player count.
- Private clickable player lists for role actions.
- Night and day phase controls.
- Detective investigations and Doctor protection.
- Private voting with the ability to change votes.
- Tie handling for both Mafia choices and Town votes.
- Automatic role reveals when players are eliminated.
- Win-condition tracking.
Player recommendations:
- Minimum players: 4
- Maximum players: 40
⚒ Commands
Host Commands
| Command | Description |
|---|---|
/function mafia:help |
Displays the game instructions and available commands. |
/function mafia:start |
Assigns secret roles and starts a new game. |
/function mafia:roster |
Displays the current player roster. |
/function mafia:status |
Shows the current game status and phase. |
/function mafia:day |
Starts the day phase. |
/function mafia:vote/open |
Opens the town voting phase. |
/function mafia:vote/close |
Closes voting and processes the result. |
/function mafia:night/start |
Starts the night phase and enables role actions. |
/function mafia:reset |
Resets the game. |
Player Commands
| Command | Description |
|---|---|
/trigger mafia_kill set <number> |
Allows Mafia members to select their target. |
/trigger detective_check set <number> |
Allows the Detective to investigate a player. |
/trigger doctor_heal set <number> |
Allows the Doctor to protect a player. |
/trigger town_vote set <number> |
Casts a vote against a player during the day. |
Players can also use the private clickable player lists instead of entering player numbers. Votes can be changed until the host closes voting.
Admin Elimination
/execute as <playername> run function mafia:eliminate/self
Allows an admin to eliminate a specific player manually.
▣ Installation
- Download the datapack ZIP.
- Open your Minecraft world's
datapacksfolder. - Place the ZIP directly inside the folder.
- Start your world or server.
- Run
/reload. - Use
/function mafia:helpfor instructions. - Run
/function mafia:startto begin a game.
▣ Requirements
- Minecraft Java Edition 1.21.1
- 4–40 players
- Multiplayer required
- Operator permissions for host commands
The town is full of lies. The Mafia is already among you.
Someone will disappear tonight. Someone will be accused tomorrow.
Choose your allies carefully. Trust no one.


