you can use the metadata info to set stairs direction PHP: $direc = $player->getDirection(); $faces = [ 0=>0, 1=>2, 2=>1, 3=>3];$meta = $faces[$direc] & 0x03;$level->setBlock($pos,Block::get(163,$meta)); The stair will in a direction that like when you place the stair https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/block/Stair.php#L85-L99