Requirements
Before installing Better Ecology, ensure your system meets these requirements:
| Component | Version | Notes |
|---|---|---|
| Minecraft | 1.21.1 | Exact version required |
| Java | 21+ | Java 21 or newer |
| Fabric Loader | 0.15+ | Latest recommended |
| Fabric API | Latest | Download from Modrinth |
Installation Steps
Follow these steps to install Better Ecology on your Minecraft client or server.
Step 1: Install Fabric Loader
The Fabric Loader enables mods to run on Minecraft.
- Visit fabricmc.net/use/ and download the Fabric installer
- Run the installer executable
- Select Minecraft 1.21.1 from the version dropdown
- Choose your installation directory (usually auto-detected)
- Click Install and wait for completion
- Close the installer when it shows “Successfully installed”
Verify installation: Launch Minecraft and check that a “Fabric” profile appears in the launcher.
Step 2: Download Required Mods
You need to download two JAR files:
Fabric API (Required dependency):
- Visit modrinth.com/mod/fabric-api
- Click the Versions tab
- Download the latest version for Minecraft 1.21.1
- Save the file (named like
fabric-api-0.100.0+1.21.1.jar)
Better Ecology:
- Visit the Better Ecology releases page
- Download the latest
.jarfile for version 1.21.1 - Save the file (named like
better-ecology-1.0.0+1.21.1.jar)
Step 3: Install the Mods
Locate your Minecraft folder:
# Windows
C:\Users\<YourUsername>\AppData\Roaming\.minecraft
# macOS
/Users/<YourUsername>/Library/Application Support/minecraft
# Linux
/home/<YourUsername>/.minecraftInstall the JAR files:
- Navigate to your Minecraft folder
- Open the
modsfolder- If the folder does not exist, create it manually
- Copy both JAR files into the
modsfolder:fabric-api-*.jarbetter-ecology-*.jar
Your mods folder should now contain at least these two files.
Step 4: Launch the Game
- Open the Minecraft Launcher
- Select the Fabric profile from the dropdown
- Click Play
- Wait for Minecraft to load
The mod will initialize during the loading screen. Check the game logs for confirmation.
Verifying Installation
Once in-game, you can verify the mod is working by observing enhanced animal behaviors.
Visual Verification
Open a creative world and spawn some animals to test:
# Spawn test animals
/summon minecraft:sheep ~ ~ ~
/summon minecraft:pig ~ ~2 ~
/summon minecraft:cow ~ ~4 ~What to look for:
- Sheep will search for grass blocks and lower their heads to graze
- Pigs will periodically root in the ground, creating particle effects
- Chickens will peck at the ground and search for seeds
- Groups of animals will maintain cohesion and avoid crowding each other
Command Verification
Use the debug command to inspect animal data:
# Check hunger and thirst values
/debugeco hunger @e[type=sheep,limit=1,sort=nearest]
/debugeco thirst @e[type=cow,limit=1,sort=nearest]If the command works and returns values, the mod is properly installed.
Log Verification
Check the game logs for the initialization message:
[Better Ecology] Better Ecology initialized
[Better Ecology] Registered hunger attachment
[Better Ecology] Registered thirst attachmentTroubleshooting
Mod Not Loading
Symptoms: No behavior changes, mod does not appear in mod menu
Solutions:
- Verify you are using exactly Minecraft 1.21.1 (not 1.21 or 1.21.2)
- Check that Fabric Loader appears in the launcher profile dropdown
- Confirm both JAR files are in the
modsfolder (use F3 to check paths) - Ensure you downloaded the correct Fabric API version for 1.21.1
Check the mods folder:
# The mods folder should contain:
mods/
fabric-api-0.100.0+1.21.1.jar
better-ecology-1.0.0+1.21.1.jarGame Crashes on Startup
Symptoms: Minecraft crashes before reaching the main menu
Solutions:
- Verify you have Java 21 or newer installed:
java -version # Should show version 21 or higher - Check for incompatible mods (remove other mods temporarily to test)
- Review the crash log in
logs/latest.logfor specific errors - Look for error messages mentioning “better-ecology” or “attachment”
Common crash causes:
- Java version too old (Java 17 or earlier will not work)
- Conflicting mods that modify animal AI
- Corrupted JAR file (try re-downloading)
Behaviors Not Working
Symptoms: Mod loads but animals behave normally
Solutions:
- Run
/reloadto refresh data pack configurations - Check that entities were spawned after mod installation
- Pre-existing entities may not have mod data attached
- Spawn new entities with
/summonor spawn eggs
- Verify the animal is supported (see Animal Overview)
- Check server logs for warnings about missing configuration files
Incompatible Mods
The following mod types may conflict with Better Ecology:
- AI overhaul mods that modify mob goals (may cause conflicts)
- Entity attribute mods that change movement speed or health
- Data pack mods that replace vanilla animal behaviors
If you experience issues, try disabling these mods temporarily to isolate the problem.
Server Installation
Better Ecology works on both single-player and multiplayer servers.
Server Setup (Step-by-Step)
-
Install Fabric on the server:
- Download the Fabric Server Launcher from fabricmc.net
- Run the installer and select your server directory
- Select Minecraft 1.21.1 and click Install
-
Add the mods:
# Place in the server's mods folder: server/ mods/ fabric-api-*.jar better-ecology-*.jar -
Configure the server:
- Configuration files will be auto-generated in
config/better-ecology/ - See Configuration Guide for customization
- Configuration files will be auto-generated in
-
Start the server:
# Use the Fabric server launcher java -jar fabric-server-launch.jar
Client Requirements
Important: All players connecting to the server must install Better Ecology on their client for the full experience.
- Without the client mod, behaviors will still work server-side
- Players will miss visual feedback like grazing animations and particles
- Hunger/thirst HUD overlay requires the client mod
Hot-Reloading on Servers
Server administrators can modify configurations without restarting:
# After editing config files, run:
/reloadThis reloads all data packs and applies new behavior parameters immediately.
Next Steps
Now that Better Ecology is installed, you can:
- Learn about configuration: Read the Configuration Guide
- Explore animal behaviors: Check the Animal Overview
- Understand the science: See Research Documentation
- Customize behaviors: Learn about the Behavior System