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
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.
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.