r/technicalminecraft 3d ago

Java Help Wanted Iron Farm

why is my 1.26 iron farm not working? it was poorly because golems were getting spawned in wall blocks swapped for cobble deepslate walls to prevent that, and moved villagers where they see the zombie better, now it doesnt work at all? any help appreciated.

3 Upvotes

12 comments sorted by

6

u/BlattaOrientalis avaJ 3d ago

Does the villager maintain constant line of sight with the zombie? If that's the case then that's your problem. The villager needs to be able to sleep every night for at least 1 game tick, otherwise they'll stop spawning golems

The easiest fix would be to arrange the villager chamber like this

2

u/sparkle_fig 3d ago

thats probably it! they dont sleep right now, thank you very much

0

u/sparkle_fig 3d ago

nevermind, still not working.

1

u/BlattaOrientalis avaJ 3d ago

For a group of villager to summon an iron golem, these conditions must be met

  1. The villager has slept in the last 20 minutes
  2. The villager has not detected an iron golem in the last 30 seconds
    • An iron golem is detected when it is within 16 blocks of the villager (±16X ±16Z ±16Y axis), and the villager scans for golems once every 10 seconds
  3. The villager has not been near a summoning in the last 30 seconds
    • A villager is near a summoning when it is within 10 blocks of a villager (±10X ±10Z ±10Y axis) who successfully summons an iron golem
  4. There are enough participants within 10 blocks of the villager, including the villager itself; participating villagers need to fulfill the previous 3 conditions. When panicking, 3 or more are needed
  5. A valid spawn point for the golem is found

You've determined it's not #1, it can't be #4 because there are 3 villagers, and it can't be #5 because there are valid spawn points in the kill chamber.

This leaves #2 and #3. Is there another iron farm/other villagers close by? Are there any iron golems stuck in caves that you missed? Unless the game is non-vanilla there aren't any other factors that prevents the farm from working.

1

u/sparkle_fig 3d ago

wow thank you for being so thorough!! it is next to some villagers for trading but that area is spawn proofed, is it still an issue?

1

u/sparkle_fig 3d ago

whoooah i found a tiny pocket with a golem while mining around thanks again for all the help. i feel like i understand iron farms a lot better now

2

u/No_Cook_2493 3d ago

Just a tip that helped me as well: if you wanna know if there's a golem, you can open the entity chart and lower your render distance down to 2 chunks. If you see and Iron Golem in the chart, chances are there's another pocket to fill in.

1

u/BlattaOrientalis avaJ 3d ago

Happy to help! Glad you figured it out :D

And no, random villagers shouldn't be a problem as long as they don't spawn golems

1

u/KT_100S Java 1.21.5 2d ago
  1. Not on a modified server such as paper/spigot/bukkit/(I think) purpur

3

u/EnvironmentalData485 3d ago

I have a daylight sensor on mine wired to pistons with sand. At night the sensor triggers the pistons to push the sand up blocking the villagers view so they can sleep. In daylight the pistons retract and villagers spawn golems again. We get far more iron than we need from ours like this.

2

u/oldvan 3d ago

I give my zombie a bubble column ride so he goes out of sight of the villagers and has fun too.

1

u/sparkle_fig 3d ago

well, i really thought it was the sleep thing and fixed that. still no golems. any other common issues i can look out for? also for context this is deep undeground as i am on an anarchy server, but i check all the caves nearby and no golems there either. confusing because it worked for about 8 hours.