3TALKING TO YOUR TURTLE

image

IT’S ALIVE! In Chapter 2, you created your first turtle robot, fueled it, and brought it to life. Your robotic creation has a body, but it doesn’t have much in the way of a brain. A Minecraft turtle’s brain is its program, which tells it what to do. Without a program to run, your robot doesn’t do anything. Let’s give the robot a bit of personality by writing a program that lets us talk with it.

TEACHING YOUR TURTLE TO SAY HELLO!

We’ll use the turtle’s edit program to create a new file and write and edit our first program. Programs like the edit program, which we use to write other programs, are called text editors. Right-click ...

Get Coding with Minecraft now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.