
AutoFarm-Mod
automatic farming for minecraft 1.21.4-1.21.8
About this Mod
AutoFarm Mod
A simple Fabric mod for Minecraft that automates common tasks like auto-swinging, auto-eating, and auto-logging out based on health. Perfect for use in an SMP server or solo play!
Please make sure to ONLY use this servers where it is allowed.
Features
- Auto-swing: Automatically swings the player's weapon when ready to attack.
- Auto-eat: Automatically eats food when the player's hunger is below a threshold.
- Auto-logout: Logs out automatically if health falls below a set threshold.
- Customizable: All settings are adjustable through a simple in-game menu.
- Automatic Saving: Your config automatically saves to
.minecraft/config/autofarmso you never lose your settings! - Ignores Players: If someone walks in front of you while farming you won't hit them!
Installation
- Install Fabric and Fabric API.
- Download the mod's
.jarfile - Place the
.jarfile in themodsfolder of your Minecraft setup. - Launch Minecraft with Fabric loader.
Configuration
The mod includes an in-game menu for configuration. The available settings are:
- Logout Health: The health level at which the player will automatically log out (in hearts).
- Swing Delay: The delay between auto swings (in ticks, max 50).
- Eat Hunger: The hunger level at which the player will automatically eat food.
- Ignore Passive: This will ignore passive mobs while farming so you can keep your pets safe!
Use the in-game menu to adjust these values to your liking.
Controls
- Menu: Open the mod settings menu with the assigned key.
Keybindings
- You can customize the keybindings for toggling the mod and opening the menu. This is set within the Minecraft options under Controls.
- The default key is U.
Usage
When enabled, the mod will automatically:
- Attack nearby enemies when the player's attack cooldown is ready.
- Eat food if hunger reaches the defined threshold.
- Log out if health is below the specified level.
All actions can be customized via the in-game menu.
Source Code
https://github.com/JacobTheIdiot/AutoFarm-Mod
Contact Info
You can reach me at jc9808 on discord
Available Versions
How to Install AutoFarm-Mod on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.8).
Install Mod
Open the mod browser in the dashboard and search for "AutoFarm-Mod". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.8, 1.21.7, 1.21.6 (+2 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
AutoFarm-Mod server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.
Is AutoFarm-Mod compatible with fabric?
AutoFarm-Mod officially supports fabric for Minecraft 1.21.8, 1.21.7, 1.21.6. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with AutoFarm-Mod – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if AutoFarm-Mod consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install AutoFarm-Mod with just one click on your server.
Details
- License
- Creative Commons Attribution Non Commercial 4.0 International
- Server-side
- Unsupported