Place Minecraft door via command?

Fr
3

I'm working on a house that will build itself, but I can't place the door, I've tried many commands, but only half a door is placed with this: / fill 2630 64 886 2630 64 886 Minecraft: oak_door

Can someone help me please?

Ps. I play Java

Place Minecraft door via command
al

You have to place the lower and upper halves separately with the parameter [type = top / bottom]

Fr

What do I have to place this after?

al

Somewhere, e.g. Setblock 100 100 100 minecraft: spruce_door [facing = east, open = true, type = bottom, waterlogged = false]