how do you check if the block below the player is air? and how do you place a block there if it iS? trying to make scaffold (dont ask me why)
Making a scaffold is not that easy. You cannot simply place a block into the air. You would also have to find the nearest solid block below the player and place the block on one of its sides.