
Molehunt Minigame Universal
A Datapack version of the Molehunt Minigame!
Molehunt
Molehunt is a game about deception. There are two roles: Mole and Survivor. If you are a Mole, your goal is to kill all the Survivors. If you are a Survivor, you are either trying to survive, kill all the Moles, or defeat the Ender dragon.

Installation
Download the datapack and add it to your world's datapacks folder.
It is recommended to play using Simple Voice Chat.
How to Start
⚠️ Only operators can start the game ⚠️
Use /reload to get the chat interface. If you don't see a prompt in chat, the datapack may not be installed correctly.

From here, continue through the prompts until you start the game!
How to Play
There are three different modes to Molehunt:
Normal
In Normal, your objective is to survive until the timer runs out. Moles must kill all the Survivors before time runs out.
Speedrun
In Speedrun, if you are a Survivor, you are trying to speedrun the game and kill the Ender Dragon. If you are a Mole, you are trying to kill all the Survivors and prevent them from beating the game. The portal will open when the timer ends.
Infection
Infection is a variant of Normal. When you die as a Survivor, you are converted into a Mole. If everyone is converted before the timer ends, Moles win.
⚠️ IMPORTANT ⚠️ Survivors are not allowed to view the player list or communicate other than using proximity chat or in-game signs. Moles may communicate with each other via these commands:
Moles may use /teammsg to talk to their teammates.
Moles may use /trigger PlayerList, this essentially acts as a player list for the mole.
General Functions
To end the game:
/function molehunt:end
To revive a player:
/execute as <player> run function molehunt:revivesurvivor
Restrictions
This minigame is limited to the resources of a datapack.
-
Skins and the TabList must be managed manually. It's recommended that each player unbinds TabList and changes their skins to be the same.
-
Chat is turned off completely, aside from /teammsg and /msg. If chat is still on even after the datapack is loaded, restart the world
-
Wolves are completely removed since they are biased towards teams.
-
Strength is banned due to balancing issues. You can remove this rule by deleting the strength line in gameplay.mcfunction
Credits
This minigame and its modes was created by Piffin380. I am simply a fan recreating the game in datapack form for others to enjoy.
Bennerr and Un1q32 for playtesting, fixes, and a few other implementations.
GalSergey for an implementation of respawning in Infection.
Trevoman for the implementation of the timer.
