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.
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
GolemSensorruns its200 gt(10.0 s) scan and detects any Iron Golem inside the villager’s±16 × ±16 × ±16bounding box, it overwritesMemoryModuleType.GOLEM_DETECTED_RECENTLYback to its full600 gt(30.0 s) TTL! - When a villager pod successfully summons a golem at
t = 0, all three participating villagers immediately setGOLEM_DETECTED_RECENTLY = 600 gt. - If the golem drops out of the
±16vertical box in under3–4 seconds(before the next200 gtsensor scan fires), the memory counts down uninterrupted to zero att = 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 the200 gtwindow, mean wait after600 gtdrops to~50 gt = 2.5 s, hitting32.5 s/golem = 443 ingots/hr!). - Conversely, if a slow water stream keeps the golem within
16blocks of the villagers untilt = 200 gt(10 s), the sensor refreshes the lockout back to600 gt, stretching cycle time to800 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 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 (
±8X,±6Y,±8Z): Centered on the summoning villager’sBlockPos,SpawnUtil.trySpawnMob()picks up to10random(X, Z)columns inside a17 × 17square and scans downward fromY + 6toY - 6for the highest solid-top surface block with unobstructed clearance for an Iron Golem’s1.4 × 2.7hitbox. To achieve a near-100%10-attempt success rate, provide at least a7×7or9×9unobstructed water pad withinΔY = -3..+2of the villagers, and cover all beds/walls inside±8with 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 only14blocks away from Pod East’s villagers, every golem spawned by Pod North resets Pod East’s600 gttimer—cutting your 4-pod farm down to single-pod output! Always space villager pods so that no villager stands within16.0blocks 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 at17–22blocks!).
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:
- 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. - Minecart Track Loop: Driving a Pillager around a square powered-rail track visits 4 separated villager pods sequentially, giving each pod
8–12 secondsof quiet darkness to enter beds between passes. - Hopper-Clock Piston Shutter: Raising an opaque block or closing a trapdoor for
40 gt(2.0 s) every30–60 secondsvia 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–440ingots/hr). Zero workstations needed. - Scale linearly by adding independent pods
>16blocks apart from rival spawn pads; 4 pods around 1 Pillager yield~1,700ingots/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
20beds and10(1-golem cap) or20(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 / 700per tick inside a16 × 12 × 16zone (±8horizontal,±6vertical) centered on the Village Center (typically the pillow of the first linked bed), yielding~350–410ingots/hr for a 20-villager trading hall + iron farm combo.
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).