Minecraft wiki entry for Nether_portal, associated text: If the first check for valid locations fails entirely, the check is redone looking for a 1×4 expanse of buildable blocks with air 4 high above each.