NAME ID REFERENCE
In this book, you used the name IDs of Minecraft blocks to write your programs. This reference lists the block name IDs so you can reference them when modifying the programs you wrote in this book or when writing new programs on your own. Before looking at the list of IDs, let’s review how to find a block’s name ID.
FINDING A BLOCK’S NAME ID
You need to know a block’s name ID when you’re working with specific types of blocks in your programs. When your turtle is facing a block, as shown in Figure 1, use the turtle.inspect() function to determine what type of block is in front of the turtle.
Figure 1: A turtle facing a grass ...
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.