In the last project, we continued our practice with infinite/forever loops to create a game where anvils rained randomly from the sky.
In this project, we are going to combine the infinte/forever loop with a conditional called an if statement and a brand new Minecraft function.
Combining all of these tools, we will make a program that creates fire whenever we walk on top of a sand block!
First, add the code to your project as shown. We’ll need to import the “time” library again for this project as well.