Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Morale Boost
A cooperative team morale system for Minecraft servers
This mod is used for RP with admins as gamemasters. Use function morale:add commands to give morale.
Overview
Morale Boost adds a shared Team Morale score that rises and falls based on what your team does together. Sleep through the night, and morale climbs. Watch a teammate die, and the whole team feels it. Morale directly affects every player's movement speed and attack speed, and going beyond the cap unlocks a buff state that makes the whole team faster and hit harder.
Designed for cooperative survival and medieval/roleplay servers.
Features
- Shared morale score ā one value for the whole team, ranging from
0to150 - Death penalty ā every death costs the team
-5morale, with atmospheric flavor messages broadcast to all players - Sleep bonus ā each player who sleeps in a bed grants
+1morale - Passive drain ā morale above
100slowly drains back down over time (1 point per minute) - Overflow buff ā morale above
100grants all players a+20%attack speed and+10%movement speed bonus - Gradual penalties ā low morale applies increasing attack speed and movement speed debuffs across multiple thresholds
- Debug command ā built-in debug function for server admins
Morale Thresholds
Penalties (morale ⤠100)
| Morale Range | Attack Speed | Movement Speed |
|---|---|---|
| 101+ | +20% (overflow buff) | +10% (overflow buff) |
| 90ā100 | ā | ā |
| 85ā89 | ā7% | ā |
| 80ā84 | ā14% | ā |
| 75ā79 | ā21% | ā3% |
| 70ā74 | ā28% | ā6% |
| 65ā69 | ā35% | ā9% |
| 60ā64 | ā35% | ā12% |
| 55ā59 | ā35% | ā15% |
| 50ā54 | ā35% | ā18% |
| 45ā49 | ā35% | ā21% |
| 40ā44 | ā35% | ā24% |
| 35ā39 | ā35% | ā27% |
| ⤠34 | ā35% | ā30% |
Morale is capped at a maximum of 150 and a minimum of 0.
Morale Changes at a Glance
| Event | Morale Change |
|---|---|
| Player death | ā5 |
| Player sleeps in bed | +1 |
| Overflow drain (above 100) | ā1 per minute |
The overflow drain only ticks while morale is above 100. Once it returns to 100 or below, the timer resets.
Commands
All commands require operator permissions (/op).
Check Morale Status
/function morale:status
Displays the current team morale to all players, color-coded by range.
Manually Adjust Morale
/function morale:add_morale_1
/function morale:add_morale_5
/function morale:add_morale_10
/function morale:add_morale_15
/function morale:add_morale_25
Adds the specified amount to team morale. Caps at 150.
Debug Info
/function morale:debug
Broadcasts an admin-facing debug panel showing current morale, overflow timer (in ticks), and cumulative death count.
Installation
- Download
Morale_Boost_release.zip - Place the
.zipfile into your world'sdatapacksfolder:<world_folder>/datapacks/ - In-game or in the server console, run:
The pack initializes automatically on load. Morale starts at/reload100if no previous value exists.
Compatibility
| Version | Status |
|---|---|
| Minecraft 26.2 (pack format 107) | ā Supported |
| Minecraft 1.21.11-1.21.5 | Maybe Supported? |
| Minecraft 1.20.x and below | ā Not supported |
This datapack uses the
attribute modifier addcommand syntax introduced in 1.21. It will not function correctly on older versions.
Notes for Server Owners
- The death detection system works by comparing a running total of all player deaths each tick.
- The
on_joinadvancement usesminecraft:tickas its trigger, which fires once on a player's first tick. It is automatically revoked after granting, so it re-fires correctly if a player re-joins. - There is no GUI or boss bar ā morale feedback is delivered through chat messages and the
/function morale:statuscommand.
Made for the need of Toba Garage Gamedev Department
License
GNU GPL v3


