why does my iron farm only work if I am very close to it (20 blocks) and the other farms always work? I'm on a server
The chunk needs to be loaded for the iron farm to work. If you go to the chunk that you spawn in and build the farm there, then it will always run because spawn chunks are always loaded. Have fun!