I've been planning this for some time now. I am building an underground base in survival (its really cool) and I have all farmable animals in it (including all varities of rabbit, all in separate chambers), except sheep. The thing is, they require grass blocks to regrow their wool, and I have one grass block from an enderman in my disposal. But there is a problem, making it both resource and space efficent (my underground base is on a small island), also preventing th grass from becoming extinct from the sheep. I have several ideas on how to do this but they are all flawed.
Any ideas? I would appericiate it.
Edit: I think I found a solution on the grass depletion problem. Do grass spread through fences?
Edit2: It turns out they do, also with stone walls as well. The project is running slowly, but smoothly.
Line the walls with stairs or slabs. Sure, it will be horrendously annoying to do so and it won't actually stop the clipping from happening, but at least your sheep won't die as a result of getting stuck in the walls (stairs and slabs are considered non-solid, so there won't be any suffocation happening).
Note that because it's not stopping the clipping, you can potentially have the animals move further into the wall rather than being bounced back into the open. If you have thin walls/walls shared between chambers then your sheep can potentially escape their own pen and get stuck in someone else's pen or even escape into the open to potentially wander far away. Similarly, if you thought it would be clever to thicken the walls and replace several layers of block with stair/slabs then you could potentially "lose" sheep because they're stuck deeply enough in the wall that you literally cannot see them.