Skip to main content

Introduction to Farm and Redstone Optimization

A basic explanation of what farms are, how they work in Minecraft, and why they can cause lag on a server.


What Is a Farm & Why Can It Lag the Server?

In Minecraft, everything that moves—redstone, mobs, villagers, hoppers, pistons, pathfinding—is a process computed by the server's CPU. All of these processes run every tick (20x per second), and when there are too many of them, the server starts to slow down. A large farm isn't just "a lot of blocks", it also means:

  • Lots of entities constantly moving
  • Lots of mob AI constantly thinking
  • Lots of redstone active nonstop
  • Lots of block updates propagating from one block to another
  • Lots of hoppers/pistons/observers checking conditions every tick

When a single farm is too large or too unrestrained, it can consume several milliseconds per tick on its own—enough to drop TPS and make the server feel choppy.

This documentation is written to explain why that happens, how to detect it, and most importantly: how to prevent players from building unhealthy farms without killing their creativity.

info

This section does not cover optimization through configuration (server.properties, spigot.yml, paper.yml, etc.); that is discussed separately in the Smooth Magic Settings section, while this section focuses specifically on farms, entities, redstone, and lag-control plugins.


Plugins Used

These are the plugins that will be used to manage farms, entities, and redstone on the server.
Each plugin has a different job, and the full detailed discussion can be opened via each one's page.

Insights
Limits the number of blocks and static entities in an area.
Works asynchronously so it's safe for performance.

RedstoneLimiter (paid)
A plugin to limit redstone activity per block/chunk.
Effectively stops redstone lag machines and exploits.

AntiRedstoneClock
Detects and stops redstone clocks that run continuously.
Can automatically disable or remove dangerous clocks.

FarmControl
Manages mob behavior in farms: limit breeding, reduce movement, or disable AI.
Reduces lag from animal farms and large mob farms.

AntiVillagerLag
Optimizes villager trading halls by safely disabling AI.
Restocking & level-up still work without burdening the server.


Written by Evan Andreyan (A.K.A LourenT) - Head of Development, foxy-network.net