Takaro module library
Takaro Modules
Takaro is a game server management platform for running, automating, and moderating multiplayer communities. These modules install into Takaro to add server automation, Discord workflows, economy systems, and moderation tools.
blood-moon-countdown
Components Overview
New Module: blood-moon-countdown
NEWbloodmoon, day7. Added 1 function: blood-moon-helpers. New configuration options: hordeIntervalDays, firstHordeDay, timeConsoleCommand, responseTemplate, hordeTodayText, daysUntilText, parseErrorMessage, includeConsoleOutputInLogs.Configuration
Configure this module using the schemas below. The JSON schema defines the data structure, while the UI schema customizes how the configuration form is displayed.
Configuration Schema
Configuration Properties (8)
How often blood moon/horde night happens, in in-game days. Vanilla is every 7 days.
7The first blood moon day in the cycle. Vanilla is day 7.
7Console command used to read current 7D2D game time. The output must include the current day, such as 'Day 12'.
gettimePlayer response template. Supports {currentDay}, {nextHordeDay}, {daysUntil}, {daysUntilText}, {interval}, {firstHordeDay}, and {source}.
Blood moon: Day {nextHordeDay}. Current day: {currentDay}. {daysUntilText}.Text used for {daysUntilText} when the next horde day is today.
Blood moon is tonightText used for {daysUntilText} when the horde is in the future. Supports {daysUntil}.
{daysUntil} day(s) remainingPlayer-facing message when console time parsing fails.
I couldn't read the current game day. Ask an admin to check the blood-moon-countdown module config a...Log the raw console output when parsing fails. Useful while tuning timeConsoleCommand.
trueUI Schema
No UI schema defined. Configuration form will use default rendering.
About Configuration Schemas
The Configuration Schema defines the structure and validation rules for module settings. The UI Schema customizes how the configuration form is displayed in the Takaro interface, including field ordering, labels, and input types.
Commands (2)
These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.
day7
Description
Function Implementation
day7 Function
JAVASCRIPTUsage Example
About Module Commands
Commands allow players to interact with your module through chat. Each command has a trigger word that players type (prefixed with /), optional arguments for parameters, and a JavaScript function that executes when the command is used. Arguments are automatically validated and passed to the function.
Functions (1)
Reusable JavaScript functions that can be imported and used by other module components like commands, hooks, and cron jobs. These promote code reuse and modularity.
blood-moon-helpers
Function Implementation
blood-moon-helpers Function
JAVASCRIPTImport Usage
About Module Functions
Functions are reusable JavaScript components that can be imported and used by commands, hooks, and cron jobs within your module. They promote code reuse, improve maintainability, and allow you to organize complex logic into modular pieces. Functions must be exported with proper ES6/CommonJS syntax to be importable by other components.







































