Guide menu ▾

Farming and mining

Cactus farm: settings, materials and problems

Cactus farm settings, the materials needed, the macro when materials run out, tiles in big farms and what to do when the cactus farm stops.

Last updated: November 26, 2026

This page explains the cactus farm's settings, the material calculation and the fixes for the messages that appear in the console when the cactus farm stops. If you are building a cactus farm for the first time, read String cactus farm: how to use it first.

Cactus farm settings

SettingDefaultDescription
Width / Length (blocks)7 / 73-128. Width goes to the right of the direction, length along the direction.
Layers41-64. Each layer is 2 blocks tall.
Scaffold blockdirtThe block placed to climb to the next layer.
Use corner coordinatesNoIf on, the farm is built from the saved corner and direction.
When materials run outWaitWait, Stop or Run macro.
Wait after a layer climb (ms)10000-5000. 0 = off.
Placing methodLike a playerBy looking, or with packets without turning its head.
Packet batch placing (blocks)11-16. 1 = off. Sends blocks of one kind back to back without waiting for the server.
Place while walkingNoWhen on, the bot places the blocks that come into reach while it walks, without stopping.
  • When Use a corner coordinate is on, a Corner (x, y, z) and a Facing (North, East, South, West) are entered. When it is off, the corner is the block where the bot's feet are and the farm is built in the direction the bot faces.
  • Wait after climbing a layer: after the bot climbs a layer and puts the cactus back, it looks at the next block and waits this long. The anti-cheat of some servers does not like turning and placing quickly.
  • Placing method: *Places by looking like a player* (default) or *Places with packets without turning its head*.
  • Place while walking (bot engine 3.5 only): while walking from one stand to the next, the bot places the blocks that come into reach without stopping, turning its head the right way for each. With Packet batch placing at 2 or more it sends them back to back without waiting for the server (at most 10 blocks a second). It stops to finish the ones that did not go in and the cacti it is not safe to walk past; the console shows a "placing while walking: X block(s) placed on the move, Y standing" line.

Materials needed for the cactus farm

Every layer of the cactus farm is laid out like a chessboard: half the squares have sand with cactus on top and the other half have string; the layers stack by shifting this pattern. So per layer about (width × length) / 2 sand, the same number of cactus and the same number of string are needed. The bot places 2 scaffold blocks each time it climbs a layer and then breaks them.

  • Example: for a 7×7 farm, 25 sand, 25 cactus, 25 string and 2 scaffold blocks per layer.
  • Red sand can be used instead of sand.
  • The settings card shows an "about ... per layer needed" line for the size you pick.
  • If a material is missing the console prints "Kaktüs farmı: eksik malzeme: ..." (Cactus farm: missing material: ...).

When materials run out in the cactus farm

  • Wait (continues when materials are given): the bot prints "malzeme bekleniyor" (waiting for materials) and continues from where it was when materials arrive in its inventory.
  • Stop: the cactus farm stops with "malzeme olmadığı için durdu" (stopped because there are no materials). Give the materials and start again with .cactus start.
  • Run macro: you pick a separate macro for sand, cactus, string and the scaffold block (Sand macro, Cactus macro, String macro, Scaffold block macro). Only the macro of the missing material runs, then the bot continues.

A material macro must give the materials to the bot (for example take them from a chest) or teleport the bot to where the materials are and bring it back (like /back). The After the macro setting decides the return: *Walk back if close* makes the bot walk back if it is within 6 blocks of where it was and at the same height; *Continue only if the macro brings it back* does not make the bot walk. If the macro does not complete the material in a few tries, the farm stops. To write a macro: Macros.

Big cactus farms: tiles

A big cactus farm is split into tiles of at most 24×24 squares and built layer by layer, tile by tile ("farm N karoya bölündü", farm split into N tiles). This way only one tile's chunks need to be loaded at a time. The bot walks to the next tile; if the tile's chunks are not loaded it waits or leaves that tile for last. The pattern continues without a break at tile borders.

Cactus farm stopped: common messages and fixes

  • "bot farm alanının dışında; alana en fazla 4 blok yaklaştır" (the bot is outside the farm area; get within 4 blocks): bring the bot into the farm or at most 4 blocks from it.
  • "köşe zeminin üstündeki boş blok olmalı" (the corner must be the empty block above the ground): the corner's y was entered one too low; use the y value the console suggests.
  • "bot çok yüksekte" (the bot is too high) or "bot farmın üstünde, y=... hizasında olmalı" (the bot should be at y=... above the farm): the bot cannot come down from the finished layers. Lower the bot by hand to the stated y and start again.
  • "farm alanında ... engel blok var" (there are obstacle blocks in the farm area): there are other blocks in the area; clear them or build the farm somewhere else.
  • "... konumuna koyulamadı ... Koyulana kadar denenecek" (could not place at ... will keep trying until it is placed): the bot keeps trying. If it takes long the console prints "yardımınız gerekiyor" (we need your help): remove the obstructing block or entity at that position.
  • "sunucu doğrulaması bekleniyor" (waiting for server verification): the server wants a verification before placing blocks; the farm continues by itself once you pass it.
  • "üst üste çok fazla hata, durduruldu" (too many errors in a row, stopped): the server may be undoing blocks. Lower the speed (.cactus speed normal) or try sneaking (.cactus walk sneak).
  • "Kaktüs farmı planınızda veya ayarlarda kapalı." (Cactus farm is off in your plan or settings): the module is not in your plan or is off in the settings.

When the cactus farm finishes it prints "Kaktüs farmı tamamlandı." (Cactus farm completed.). If it could not reach some blocks it says "Kaktüs farmı bitti ama ... blok eksik kaldı" (Cactus farm finished but ... blocks are missing) and gives the first missing position; bring the bot near that position and start again with .cactus start to complete the missing ones.

Frequently asked questions

What does the bot do when materials run out in the cactus farm?

When materials run out it waits, stops or runs the macro of the missing material, depending on your setting. If Wait is chosen, it continues from where it was when you put materials in the inventory.

Does the cactus farm continue after the bot restarts?

It does not start by itself; when you type `.cactus start` it continues from where it was. If the bot is near where it stopped it continues the saved plan, otherwise it finds the finished layers with the corner coordinates.

How big can a cactus farm be?

Width and length can be 3-128 blocks and the number of layers 1-64. Big farms are built by splitting them into 24×24 tiles.

The server undoes blocks in the cactus farm, what should I do?

Lower the placing speed (`.cactus speed normal` or `slow`), try sneaking (`.cactus walk sneak`) and keep Wait after turning on in the Bot behavior card.

Cactus farm: settings, materials and problems — AFKBot