Now we are going to build a flight of stairs using the material present in the 1st position of the array.
At the end of this activity, the final output should look like shown in the image below:
Using Python:
Here are the detailed steps:
Step 1: Teleporting the builder to the entered position
Step 2: Make an array named material
Step 3: Creating a variable length which is the length of the array
Step 4: Starting a for loop which will run as many times as the length of the array
Step 5: Moving the builder forward by 1 step and then up by 1 step
Step 6: Finally, the builder traces the path travelled and puts a block of material present on the 1st position (Chiseled Sandstone) in the array material on the traced path
Step 7: When you hit play you will that there is a Sandstone stair created.
Using Block code: