Add carpets on the wall and you can go out while the animals cannot.
Can light go through carpet in minecraft.
When holding scaffolding the hitbox of scaffolding in the world is a full block java edition only otherwise a player can interact with other blocks through the scaffolding.
However baby animals and chickens can fit in a one block hole so you may want to place a trapdoor at the top.
In the ceiling make a hole 2 blocks up in it place some sort of light source block in the upper hole and then cover it with white stained glass.
A carpet is a thin sheet of wool that can be placed on the ground completely covering the top of the block on which it is placed.
Put a light source block behind a painting.
The internal light level is used for calculations within the game.
The game uses sky light time and weather to calculate an internal sky light value also known as darkening sky light then uses the maximum level of the block light and.
A carpet acts like a half slab in that some blocks cannot be placed directly on top of it such as a lily pad carpets can be used as fuel.
Fuel edit scaffolding can be used as a fuel in furnaces smelting 2 items per block in java edition and 6 items per block in bedrock edition.
Get a light source block sea lantern glowstone block beacon etc and place a carpet or transparent block on top.
Carpet is an opaque block but does not decrease light going through it.
Another use for carpets is for decorating llamas.
The game uses the internal light level of one block to compute aspects of the game which include mob spawning plant growth and daylight detector outputs.