Fountain Studios
Minecraft Python command structure
Coding Concept
Tell the students that every command while programming using Minecraft Python is made from specific parts. Let us take one command as an example:
player.say()
Here we can see that the command is made from two parts. The first part is the player part, and the second part is the say part. The player part is commonly called a class in Python; however, in Minecraft Python in this course, we will be calling it the command group. This is because it can be thought of as a box where many different commands are kept. The say part is one of the actual commands, in that specific box, and is commonly called a method or function in Python. In Minecraft Python we will be calling it command name. The general structure of a command in Minecraft Python would be the command group followed by the command name, separated by a dot. At the end of every command there is a pair of brackets where we input parameters to make the command do exactly what we want.
command_group.command_name()
Unplugged Activity
Tell the students that every command while programming using Minecraft Python is made from specific parts. Let us take one command as an example: