Spruce door is a craftable block and you can use it as a switchable barrier.
To make Spruce Door, you just need two things, Spruce Wood Logs and Spruce Wood planks. Please follow the following steps to make Spruce Door.
Spruce Wood Logs
In order to make a Spruce door, the basic item you will need to get is a spruce wood log. You can find these trees in taiga biomes. Use your iron axe to get at least 2 blocks of spruce wood logs.
Spruce Planks
Go towards the crafting table to craft spruce planks from spruce wood logs. Add spruce wood block in any cell of the 3*3 crafting grid to get spruce wood planks in the right-side box of the crafting table. One spruce wood block will convert into four wooden planks. Bring these planks into your inventory.
Spruce Door
Now you can craft a spruce door using the crafting table. Add three spruce planks in the first column and three in the second column of 3*3 crafting grid as shown in the image below. You will get three spruce doors in the right-side box of the crafting table. Add these doors in your “ready to use” stock.