Glass is also one of the easily craftable items in the game. All you need is some sand and a furnace, and you can have all the glass you need. You can look at all the diversification of glass and a detailed tutorial on making the said blocks below.
How to Craft Glass in Minecraft?
Crafting glass does not require a lot of materials. All you have to do is collect sand. You can find a lot of it on river banks or a desert biome and smelt them. Once the smelting process is complete, you can grab the glass blocks and place them in your inventory to use them. Additionally, the glass you collect from the furnace is in the block shape, so you do not have to worry about turning glass into a block.