Coding 3: Building And Repeats


Coding Threads

Coding 0: Welcome To Coding Camp. Installing Computercraftedu and using the Turtle Remote
Coding 1: Enter The Turtle Garden. Learning how to control your Turtle.
Coding 2: The Enchanted Forest. Practicing Turtle movement.
Coding 3: Building And Repeats. Learning to build with your Turtle.
Coding 4: The Enchanted Meadow. Practicing Building and Repeats.
Coding 5: Nested Repeats. Learning to stack repeats.
Coding 6: Turtle Town. Practicing repeats.
Coding 7: The Big Dig. Learning to dig and practicing loops.
Coding 8: Million Mile Mines. Practicing digging and loops.
Coding 9: The If Statement. Learning about conditional statements.
Coding 10: The Working Turtle. Writing complex programs with conditions and loops.

Building Code

Turtles are excellent builders. They can place blocks in front of them, above them, and below too. Five new code blocks will be needed to complete today’s activities.

<img src=>

Place block: Places a block directly in front of the Turtle. Note: If the Turtle cannot place a block the program will automatically stop.

Place block above: Places a block above the Turtle.

Place block below: Places a block below the Turtle.

Select Slot: Select which inventory slot to use. You can click the yellow or red square next to a code block to choose from a recommended list of code blocks.

Number: Enter the number of the inventory slot to use.

Turtles can place blocks from up to 16 different inventory slots. To move items into a Turtle inventory use the Turtle Remote and drag items over from your inventory.

<img src=>

Using Repeats

Sometimes we want computers and robots to do repetitive tasks. Imagine building a wall. The longer the wall the more repeats you will need. Four new blocks of code will allow Turtles to repeat.

REPEAT: This block starts a repeat loop.

NUMBER: This goes right after the repeat block and tells the Turtle how many times to repeat the actions.

DO: This block lets the Turtle know when the code you want to repeat starts.

END: This block lets the Turtle know when the code you want to repeat ends. The Turtle will repeat the code between DO and END a certain NUMBER of times.

<img src=>

Coding Challenges

The Turtle Monument Spectacular: Choose from a rainbow of colors and program your Turtle to build a Turtle Monument. Use the Turtle’s inventory, inventory selection, and place block code to build your monument.

Basic Loop Course: Take your Turtle for a loop in our Basic Loop Course. Program your Turtle to perform repeated movements to navigate through through the mazes and obstacles.

Basic Turtle Construction Workshop: Turtles are excellent Minecraft builders. Get your Turtle to build a simple wall by combining block placing and repeat code.

Back to Connected Camps Homepage