Minecraft wiki entry for Animal_farming, associated text: You can use any solid block (can’t use fences or glass panels as sheep get stuck), but you need a way for the grass to grow in the farm - otherwise the sheep won’t regrow their wool. Build an extra level around with grass blocks.