1b14e0d171
Villager.spawnGolemIfNeeded set GOLEM_DETECTED_RECENTLY on the villagers near a new golem, but Horizon wrote only villager::Ext, and the next brain tick copied the empty memory back over it: the same villagers could summon another golem before their sensor saw the first. golem_detected now sets the brain memory (599 ticks). IronGolem.checkSpawnObstruction checks the floor's top face (no golems on dirt paths, farmland or slabs) and three blocks, the feet whatever fluid is there; Horizon checked four blocks and no floor, so a roof three blocks up kept golems out. The search's open block is air or a liquid block, not any waterlogged one, and the villagers asked are those whose boxes meet the caller's box grown by 10. The golem is created (yaw, follow range bonus, left-handedness from the level random) before the obstruction check, as trySpawnMob does. The search and checks move to mobs::villager so the mob_ai probe runs the game's code: four new scenarios (gossip, glass roof, dirt paths, panic) match vanilla; with the old checks all four diverge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>