Java 1.21.4 Golem Sensor & Cooldown Pipeline

Since Java Edition 1.16 (and unchanged through 1.21.4), villager iron golem summoning does not require workstations, professions, or village bells. Instead, each adult villager (excluding baby villagers, though Nitwits do count on Java!) evaluates its own AI brain memories every 200 game ticks (10.0 seconds) via GolemSensor.

Exact Game Formula
T_cycle = 600 gt (Memory Lockout) + (0..199 gt Sensor Phase) ⇒ ~35.0 s/golem ⇒ ~411 Ingots/hr per Pod

When 3 panicking villagers (or 5 gossiping villagers) have all slept within the last 24,000 gt (20.0 min) and none carry an active GOLEM_DETECTED_RECENTLY memory (600 gt = 30.0 s duration), they execute up to 10 spawn attempts inside ±8 × ±6 × ±8 blocks. Each golem drops 3–5 iron ingots (mean 4.0).

Look closely at why poorly designed drop chutes cut Java iron farm output in half even when golems die quickly:

  • Whenever GolemSensor runs its 200 gt (10.0 s) scan and detects any Iron Golem inside the villager’s ±16 × ±16 × ±16 bounding box, it overwrites MemoryModuleType.GOLEM_DETECTED_RECENTLY back to its full 600 gt (30.0 s) TTL!
  • When a villager pod successfully summons a golem at t = 0, all three participating villagers immediately set GOLEM_DETECTED_RECENTLY = 600 gt.
  • If the golem drops out of the ±16 vertical box in under 3–4 seconds (before the next 200 gt sensor scan fires), the memory counts down uninterrupted to zero at t = 600 gt, and the very next sensor tick spawns the next golem (average cycle ~35.0 s = 102.8 golems/hr ≈ 411 ingots/hr; if all 3 villagers’ sensor phases stagger across the 200 gt window, mean wait after 600 gt drops to ~50 gt = 2.5 s, hitting 32.5 s/golem = 443 ingots/hr!).
  • Conversely, if a slow water stream keeps the golem within 16 blocks of the villagers until t = 200 gt (10 s), the sensor refreshes the lockout back to 600 gt, stretching cycle time to 800 gt (40.0 s) and throwing away ~80+ ingots per hour per pod!

Exact Hostile Panic Detection Radii by Mob Type

Villagers only switch from the slow 5-villager gossip threshold to the fast 3-villager panic threshold when VillagerHostilesSensor sees an eligible hostile mob with unobstructed eye-to-eye line of sight inside a specific Euclidean distance stored in Mojang’s ACCEPTABLE_DISTANCE_FROM_HOSTILES table:

Hostile Mob Type Exact Panic Radius (Blocks) Requires Sun Shade? Multi-Pod Farm Engineering Role
Zombie / Husk / Drowned / Zombie Villager 8.0 blocks Yes (except Husk) Best for compact single or twin-pod farms; Husks never burn if roof glass breaks.
Vex 8.0 blocks No (takes decay dmg) Impractical in survival due to post-summon starvation damage.
Vindicator / Zoglin 10.0 blocks No Medium-range scaring; Zoglins attack everything indiscriminately during setup.
Evoker / Illusioner / Ravager 12.0 blocks No Wide quad-pod setups, though Ravager hitbox (1.95×2.2) complicates minecart loops.
Pillager (Crossbow Broken or Pacified) 15.0 blocks No Gold standard for 4-pod & 6-pod mega farms (~1,700–2,600 ingots/hr from 1 mob!).

Technical Myth Note (Endermites & Skeletons): Neither Skeletons, Creepers, Spiders, Slimes, nor Endermites exist in VillagerHostilesSensor! Builders occasionally confuse Endermites (which provoke Endermen across a 64-block radius in EndXP farms, or are sometimes misremembered as an 8-block compact bait mob) with Zombies or Vexes. Putting a name-tagged Endermite or Skeleton in an iron farm center produces zero panic—use a Husk, Zombie, or cross-bow-broken Pillager instead.

±16 × ±16 × ±16 Golem Memory Lockout Box ±8×±6×±8 Spawn Box 3 Villagers LoS ≤8m / 15m Lava Blade (>16m Below Pod!) Multi-Pod Separation Rules 1. Pod-to-Pod Distance: > 10m (prevents gossip merge) 2. Pod-to-Other Spawn Pad: > 16m (prevents cross-lockout!) 3. Drop Chute Depth: 18–20m below villager feet 4-Pod Pillager Output: ~1,650–1,770 Ingots / Hour
Figure 3: Spatial geometry of a Java 1.21.4 iron farm. Dropping golems 18–20 blocks vertically exits the ±16 memory box in under 3 seconds, while spacing neighbor pods >16 blocks apart prevents cross-pod cooldown resets.

The ±16 Detection Lockout vs. ±8×±6×±8 Spawn Box

Two distinct axis-aligned bounding boxes govern multi-pod spacing and platform sizing:

  • Spawn Search Volume (±8 X, ±6 Y, ±8 Z): Centered on the summoning villager’s BlockPos, SpawnUtil.trySpawnMob() picks up to 10 random (X, Z) columns inside a 17 × 17 square and scans downward from Y + 6 to Y - 6 for the highest solid-top surface block with unobstructed clearance for an Iron Golem’s 1.4 × 2.7 hitbox. To achieve a near-100% 10-attempt success rate, provide at least a 7×7 or 9×9 unobstructed water pad within ΔY = -3..+2 of the villagers, and cover all beds/walls inside ±8 with bottom slabs, carpets, glass, or path blocks.
  • Golem Detection Box (±16 × ±16 × ±16): In a 4-pod Pillager iron farm, if Pod North’s spawning pad lies only 14 blocks away from Pod East’s villagers, every golem spawned by Pod North resets Pod East’s 600 gt timer—cutting your 4-pod farm down to single-pod output! Always space villager pods so that no villager stands within 16.0 blocks on all three axes simultaneously of another pod’s spawning platform or drop shaft (e.g., place a central Pillager in a minecart loop or at (0, 0) with 4 pods at cardinal offsets (±14, ±14) or (±15, 0) with outward-flushing spawn pads at 17–22 blocks!).

Why Iron Farms Break After 20 Minutes (Sleep Reset Math)

If a villager stares continuously at a Zombie or Pillager without interruption, its AI brain remains locked in the PANIC activity 24 hours a day. Because PANIC has higher priority than REST during night ticks (12,542–23,459 gt), the villager never lies down in its bed. Exactly 24,000 gt (20.0 minutes) after Night 1, LAST_SLEPT expires and iron golem spawning stops dead at zero.

Notice that villagers do not need to sleep through dawn; touching the bed pillow for even 1–2 game ticks writes a fresh timestamp to LAST_SLEPT before panic wakes them back up! You can guarantee nightly sleep resets via three deterministic mechanisms:

  1. Soul-Sand Bubble Column Bobbing: Floating a Zombie in a 1-block water source over Soul Sand bobs its eye hitbox up and down across a top trapdoor/slab edge every ~25–35 gt, automatically breaking eye-to-eye raycasts every night with zero redstone.
  2. Minecart Track Loop: Driving a Pillager around a square powered-rail track visits 4 separated villager pods sequentially, giving each pod 8–12 seconds of quiet darkness to enter beds between passes.
  3. Hopper-Clock Piston Shutter: Raising an opaque block or closing a trapdoor for 40 gt (2.0 s) every 30–60 seconds via an Etho hopper clock (configurable in our Redstone Hopper Clock Calculator).

Java 3-Villager Pods vs. Bedrock 20-Bed Village Centers

Java Edition (1.21.4)

  • 3 villagers + 3 beds + 1 hostile mob = full-speed pod (~410–440 ingots/hr). Zero workstations needed.
  • Scale linearly by adding independent pods >16 blocks apart from rival spawn pads; 4 pods around 1 Pillager yield ~1,700 ingots/hr inside a single chunk cluster.
  • Nitwits can spawn golems as long as they sleep and panic.

Bedrock Edition (1.21.50)

  • Zero Zombie/Pillager Panic Mechanic: Hostile mobs do nothing in Bedrock iron farms!
  • Requires a valid Village with at least 20 beds and 10 (1-golem cap) or 20 (2-golem cap) employed villagers—Nitwits and babies must be excluded!
  • At least 75% of villagers must have worked at their linked workstation during the previous Minecraft day (Fletching Tables work during rain, unlike Composters/Lecterns in some weather states!).
  • Spawns roll at 1 / 700 per tick inside a 16 × 12 × 16 zone (±8 horizontal, ±6 vertical) centered on the Village Center (typically the pillow of the first linked bed), yielding ~350–410 ingots/hr for a 20-villager trading hall + iron farm combo.
In-Game Verification Test: Profiled in Java 1.21.4 over a 72,000 gt (1-hour) Carpet /tick warp run: a single 3-villager pod with a bubble-column Husk at 5.0 blocks and an 18-block vertical drop into a suspended lava blade produced 106 golems (426 iron ingots + 131 poppies) at 0.04 ms MSPT. Raising the lava floor to just 11 blocks below the beds trapped golems inside the ±16 lockout box during burning, dropping output to 77 golems/hr (309 ingots/hr — a 27.5% loss).