Question: what are iron golems attracted to?
Answer: This means the iron golem can spawn inside 1-deep water or inside blocks like halfslabs, fences, and carpets (if other checks pass). Adjacent blocks are irrelevant, so golems can even spawn partially inside adjacent solid blocks resulting in their own suffocation and death.