Hey! I’m excited to share BossTimerMod, a Fabric mod that lets you create and manage server timers with boss bars, messages, and command triggers. Perfect for events like restarts, boss fights, or scheduled server actions.
/bossbartimer
command to manage timers.- Fully configurable timer durations, messages, and triggers.
- Before and After commands for custom actions.
- Boss bar display for all players, with countdown.
- Tab completion for timer names.
- Safe reload: cancels running timers before loading config.
- Works with Fabric 1.21.1 and LuckPerms permissions.
- Make sure you have Fabric Loader 0.16.10+ and Fabric API 0.116.1+ installed for Minecraft 1.21.1.
- Download the mod
.jar
(example):bossbartimer-2.0.1-1.21.1.jar
- Place the
.jar
in yourmods
folder. - Start the server or client.
Create a file at config/bosstimer_commands.json
:
{
"restart": {
"duration": 60,
"bossbar_message": "🕳️ Restart in %s seconds",
"before": [
"tellraw @a {\"text\":\"[ALERT] \",\"color\":\"red\",\"bold\":true,\"extra\":[{\"text\":\"An unplanned server restart is about to take place. Please plan accordingly.\",\"color\":\"yellow\"}]}"
,"title @a title {\"text\":\"Restart Incoming!\",\"color\":\"gold\"}"
],
"after": [
"tellraw @a {\"text\":\"[ALERT] \",\"color\":\"yellow\",\"bold\":true,\"extra\":[{\"text\":\"The server is restarting soon.\",\"color\":\"yellow\"}]}"
,"execute as @a run stopbattle @s"
],
"triggers": {
"30": { "message": "🕳️ 30 seconds remaining." },
"10": { "message": "🕐 10 seconds!" },
"5": { "message": "⚠️ Restarting soon..." }
}
}
}
duration
→ timer length in seconds.bossbar_message
→ shows in the boss bar,%s
replaced by remaining seconds.before
→ commands executed at the start of the timer.after
→ commands executed after the timer ends.triggers
→ optional messages at specific seconds.
- Start a timer:
/bossbartimer start <timerName>
- Cancel all timers:
/bossbartimer cancel
- Reload configuration:
/bossbartimer reload
bossbartimer.run
→ Start or cancel any timer.bossbartimer.reload
→ Reload configuration safely.
Use LuckPerms or another permissions plugin to assign these to your staff.
Mod Version | Minecraft | Fabric Loader | Fabric API |
---|---|---|---|
2.0.1 | 1.21.1 | 0.16.10+ | 0.116.1+ |
Created and maintained by FreeSpinner.
- Test timers on a small server first to make sure commands and messages are correct.
- Always include
%s
inbossbar_message
to show countdown. - Use triggers to alert players before the timer ends for critical events.