Skip to content

Functions

Several .mcfunction files are available in the mod’s config folder. These can be used to run commands on certain game events, such as when a round starts or ends.

  • Directoryconfig
    • Directoryyet-another-minecraft-bingo/
      • Directorycommands/
        • on_pregame.mcfunction
        • on_starting.mcfunction
        • on_countdown.mcfunction
        • on_playing.mcfunction
        • on_postgame.mcfunction

For example, on_playing can be used to set certain gamerules that you might want during a round - e.g:

on_playing.mcfunction
gamerule announceAdvancements false

These events are also available to datapacks in the form of function tags.

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.