SacredCows is a configurable Minecraft Fabric mod that punishes players for harming cows with customizable consequences and keeps detailed statistics of cow-related offenses.
![]()
SacredCows is a configurable Minecraft Fabric mod that adds a humorous twist to cow interactions. It punishes players for harming cows with customizable consequences and keeps detailed statistics of cow-related offenses.
sacredcows-2.2.0.jar from the releases section.mods folder.config/sacredcows.properties to customize settings (optional)./sacredcows reload to apply configuration changes without restarting.To build the mod from source:
./gradlew clean build in the project root directory.build/libs folder.The mod works automatically once installed. Players will be punished for harming cows according to your configuration settings, and their offenses will be tracked on the scoreboard.
| Command | Description | Permission |
|---|---|---|
/sacredcows |
Show mod info and help | Server operator |
/sacredcows reload |
Reload configuration file | Server operator |
/sacredcows stats <player> |
View player's cow-related statistics | Server operator |
Since Fabric doesn't have a built-in permission system, SacredCows uses operator status:
| Permission | Description | Default |
|---|---|---|
| Level 2+ | Bypass cow protection (configurable) | Manual OP assignment |
| Level 3+ | Admin command access | Manual OP assignment |
The mod creates a config/sacredcows.properties file with the following options:
# Enable/disable the mod functionality
settings.enabled=true
# Enable debug logging
settings.debug=false
# Punishment type: DEATH, DAMAGE, LIGHTNING_ONLY
settings.punishment-type=DEATH
# Amount of damage to deal if punishment-type is DAMAGE
settings.damage-amount=10.0
# Enable lightning effect when punishing
settings.lightning-effect=true
# Enable custom death messages
settings.custom-death-messages=true
# Enable scoreboard tracking
scoreboard.enabled=true
# Track cow assaults (damage events)
scoreboard.track-assaults=true
# Track cow kills (death events)
scoreboard.track-kills=true
# Objective and display names
scoreboard.assault-objective=cowAssaults
scoreboard.kill-objective=cowKills
scoreboard.assault-display=Cow Assaults
scoreboard.kill-display=Cow Kills
# Custom death messages (use %player% as placeholder)
death-messages.0=%player% was moo-rdered for their bovine crimes
death-messages.1=%player% faced divine bovine retribution
death-messages.2=The cows fought back, and %player% lost
death-messages.3=%player% learned the hard way not to mess with cows
death-messages.4=A mysterious force struck down %player% for harming a cow
# Permission strings (used with operator status)
permissions.bypass-permission=sacredcows.bypass
permissions.admin-permission=sacredcows.admin
settings.allow-bypass config option to disable admin bypass permissions/cowmurder to /sacredcowsSacredCows uses Fabric's event system for reliable cow protection:
ServerLivingEntityEvents.ALLOW_DAMAGE for preventing cow damageServerLivingEntityEvents.AFTER_DEATH for tracking kills and custom death messagesContributions are welcome! Please feel free to submit a Pull Request.
I don't believe in intellectual property. This code has no formal license - use it however
you want. I will never pursue legal action against anyone for any use of this code.
For support, please open an issue on the GitHub repository.
Use this mod at your own risk. The author is not responsible for any damage to your server, player frustration, or the inevitable cow uprising that may result from their newfound invincibility. Cows, on the other hand, may send thank-you notes.