MakeCode is a blocky language and it can be used to make Mods for Minecraft. Mods allow the player to run code inside Minecraft to spawn, build, plant etc. The mod can be saved and used over and over by typing a keyword into the console. MakeCode was developed by Microsoft and can be used in other programming environment such as robotics or electronics. In the Minecraft MakeCode PXT (Programming eXperience Toolkit) there is a tutorial which we will use to create our mods. When organising your screen it may be useful to place the MakeCode window and Minecraft window side-by-side as shown.
|
To learn about the MakeCode language there are many tutorials. These create fun and exciting events in your Minecraft world. Click for tutorials.
Some of these tutorials are called: Agent move Super digger Agent build Fast forward Chicken rain Billboard Mega jump Compass rose Flower trail Spleef etc... Have a go and complete the number of tutorials the LL asks you to. |
Coordinates Overview
In Minecraft, it’s important to know where you are in the world, where your agent is, and where all kinds of things from diamond mines, to woodland mansions, to underground spawners are. In Survival mode, it’s even more important to be able to get back to a safe place when the sun starts to go down, or to remember the location of points of interest so you can find them again if your inventory is full and you need to come back. To find your World Position and your Agents World Position: press F1 An overview of coordinates absolute and relative Unplugged Activity: Classroom Coordinates Activity: Minecraft Moving Company |
|
What is pseudocode? That is a good question and now that you are familiar with modding it's a good time to learn about pseudocode. If we ask the wikihow,com website this is what they say. "Pseudocode is an informal tool that you can use to plan out your algorithms. As you begin to write more complex code, it can be hard to keep an entire program in your head before coding it. Think of pseudocode as a step-by-step verbal outline of your code that you can later transcribe into a programming language. It is a combination of human language and programming language: it mimics the syntax of actual computer code, but it is more concerned with readability than with technical specificity." https://www.wikihow.com/Write-Pseudocode Open the Pseudocode Worksheet |
Make a Crop FarmWatch the MakeCode video.
Try out the techniques shown in the video. TASK Write pseudocode for this crop farm:
|
|
|
MakeCode has a website that can be used to help you understand how the MakeCode Programming Language works. Try https://minecraft.makecode.com/docs
|
This worksheet helps you to understand what you have been doing in some of the programming exercises you have been doing.
Open the worksheet here |
Climbing WorksheetThis worksheet uses sensing of the environment to help the Agent to climb a wall.
Open the worksheet here Extension Add some string output to the Minecraft screen to explain what the agent is doing. Use a 'say' command. |
Sensing WorksheetTest Cases WorksheetThis worksheet is about testing your program to make sure it does what it's expected to do.
Download the worksheet here |