AutoFarm-Mod

AutoFarm-Mod

automatic farming for minecraft 1.21.4-1.21.8

by
3.7K Downloads
fabricgame-mechanicsutility
Rent Server with this Mod

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/autofarm so you never lose your settings!
  • Ignores Players: If someone walks in front of you while farming you won't hit them!

Installation

  1. Install Fabric and Fabric API.
  2. Download the mod's .jar file
  3. Place the .jar file in the mods folder of your Minecraft setup.
  4. 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

  1. 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.
  2. 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

AutoFarm-Mod 1.1.2-1.21.8release
MC 1.21.8fabric
August 27, 2025
AutoFarm-Mod 1.1.2-1.21.7release
MC 1.21.7fabric
August 27, 2025
AutoFarm-Mod 1.1.2-1.21.6release
MC 1.21.6fabric
August 27, 2025
AutoFarm-Mod 1.1.1-1.21.8release
MC 1.21.8fabric
August 27, 2025
AutoFarm-Mod 1.1.1-1.21.7release
MC 1.21.7fabric
July 11, 2025

How to Install AutoFarm-Mod on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.8).

3

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

fabric

Minecraft Versions

1.21.8, 1.21.7, 1.21.6 (+2 more)

Server-side

Unsupported

Recommended 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.

Rent Modded Server

Install AutoFarm-Mod with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Attribution Non Commercial 4.0 International
Server-side
Unsupported

Supported Versions

1.21.81.21.71.21.61.21.51.21.4