Skip to content

Function Tags

The mod provides a few events for datapacks to use as function tags.

To create a function that runs on an event, you’ll need both a function file and a tags/.../[event].json file that references its ID. For example:

mynamespace/function/reset_all_my_scoreboards.mcfunction
scoreboard players reset * [...]
yet-another-minecraft-bingo/tags/function/on_playing.json
{
"values": [
"mynamespace:reset_all_my_scoreboards"
]
}

This runs as soon as the server starts up, if a game has not been started.

This runs when the “Start!” button is first pressed, while the game is attempting to locate a spawnpoint and teleport players.

This runs once the game has teleported players to their spawnpoints, just before the countdown starts.

This runs at the end of the countdown, when the game is started.

This runs when the game is over.