Project 10: Block Detector

Step 1

Program Setup


In the last project, we combined infinite loops and for loops to create a program that shot out lava wherever we walked.

In this project, we will combine the infinite loop the for loop and if statements to create a program that searches for a certain block underneath the player, and tells us how deep it is if it finds one. Very useful for finding rare blocks!

Add the code as shown to start the project, this should all look pretty familiar at this point.