14PROGRAMMING A ROBOTIC FARM

image

In Survival mode, you need to make sure you’re fed, but hunting for and gathering food is time consuming. Farming and stocking food are better solutions, but maintaining a large farm can be quite a chore. However, you can manage a giant crop field with one well-programmed farming turtle, as shown in Figure 14-1.

image

Figure 14-1: One turtle can work a large-scale wheat farm.

In this chapter, you’ll write an algorithm that tells your turtles how to plant, harvest, and store crops.

SETTING UP A WHEAT FIELD

To create a wheat-farming ...

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.