How do I use /setblock and place a stone brick stair in the outer right shape?

I can't quite place a stair the direction I want it to go and I need to know the format of how to do that command. I have already attempted to do
/setblock ~ ~ ~ minecraft:stone_brick_stairs 2
and
/setblock ~ ~ ~ minecraft:stone_brick_stairs 3 etc.
However I end up with either of these two situations:
but I want it to be like this:
I've tried this but then it looks kinda ugly:
This is the whole room layout:
Best Answer
It seems that the problem is not with the setblock
command, but with the stair position right behind it.
If I'm seeing this right...
? = stair placed sideways to wall ? = stair placed pointing away from wall
When you look at the stairs, corner stairs are actually placed in a certain way. These diagrams will represent the way they are placed. ? is a wall block. Do NOT remove the wall blocks. Only change the stairs that you have already placed.
First picture:
??????
??????
??
Second picture:
??????
??????
??
This placement creates the stairs you want:
??????
??????
??
Is it clearer now? Try placing by hand first before setblock
so you can see where I'm getting at.
Pictures about "How do I use /setblock and place a stone brick stair in the outer right shape?"



How do you change the shape of stairs in Minecraft?
In general, start by adding a stair block, then another next to it with the same orientation. Finally, orient yourself 90 degrees to add the third stair which will complete a corner.How do you use wood Setblock?
How to Enter the CommandHow does Setblock work Minecraft?
To fill multiple blocks there are a few choices. First if you have a rectangular shaped area, use the fill command: /fill <x1> <y1> <z1> <x2> <y2> <z2> block . Second choice is to use command block mine carts stacked in a single block space each with an individual /setblock command in it.Using Commands in Minecraft: How to Use /setblock \u0026 /fill to Alter Terrain! | 1.11.2
More answers regarding how do I use /setblock and place a stone brick stair in the outer right shape?
Answer 2
The corner stairs are not actually stairs rotated in that direction, but a special texture when the stair that is rotated 90 degrees from the original direction, thus to get the special rotation you need another stair next to it.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anton Polyakov, Maria Orlova, Plato Terentev, Charlotte May