530 likes | 565 Views
Computing with Minecraft 1: The Agency. Lesson A: Code a conversation with your Agent. To play Minecraft: Education Edition Block programming in Microsoft MakeCode To change your Minecraft world through coding. What we’ll learn. What is Minecraft?. A game about: Placing blocks
E N D
To play Minecraft: Education Edition Block programming in Microsoft MakeCode To change your Minecraft world through coding What we’ll learn
What is Minecraft? • A game about: • Placing blocks • Building anything you can imagine • Going on grand expeditions • Let’s explore!
Your turn to play Use keyboard and mouse controls Look and move around Play with your inventory Build and mine
Let’s discuss • How do you use your mouse so your player can look around? • What are two keyboard controls to move your player? • Do you like using mouse or keyboard controls better? • What’s one thing you discovered while playing?
Let’s talk coding Code or a computer program gives instructions to a computer to do something. A computer can be a laptop, tablet, smart phone, TV, robot, and more. If you were going to code a computer to make a sandwich, you’d break down the task into specific steps in a specific order, which is an algorithm.
A coding mindset • Learning something new can be hard • Be curious if you get frustrated • Be persistent and keep trying • After you try to figure it out, ask others for help • Learn from mistakes
Coding with Microsoft Makecode Part of the Code Connection app Code in blocks or JavaScript Let’s try it out!
Coding with Chat commands The drawer has coding blocks that work in direct response to your actions An runs code when you type the command in the chat field of Minecraft PLAYER on chat command
Let’s discuss • How do you open the chat field? • How do you close the chat field? • What’s an ? • How do you get to the coding Workspace? on chat command
Lesson A Let’s review What did you learn today that you didn’t know before? What was most challenging? What questions do you have?
Next time • Meet your Agent
To code your Agent to come to you What We’ll learn
Let’s Meet Your agent It’s a Non-Player Character (NPC) assistant in the game to help you do things, like build, farm, and much more. It appears when you teleport it to your player. The drawer has coding blocks relating to it. AGENT
Let’s discuss • What are the four main keyboard controls for moving your player around? • What does it mean if a block in the coding Workspace is opaque?
Lesson BLet’s review What did you learn today that you didn’t know before? What was most challenging? What questions do you have?
Next time • Code with other blocks in the drawer AGENT
What we’ll learn To code the Agent to turn on the spot
Code your agent to turn right or left • Helps your Agent perform tasks • involving movement, like chopping • down trees or building a house
What did you learn today that you didn’t know before? What was most challenging? What questions do you have? Lesson C Let’s review
Next time • Code your Agent to move around in the game
What we’ll learn To teach your Agent to move around
Let’s code More ways to move your Agent in different directions
What did you learn today that you didn’t know before? What was most challenging? What questions do you have? Lesson D What we learned today
Next time • Code your Agent to destroy stuff
What we’ll learn To code your Agent to chop down a tree and collect the wood
Chopping down trees Combining what we’ve already learned with new commands
Lesson E Let’s review What did you learn today that you didn’t know before? What was most challenging? What questions do you have?
Next time • Give your Agent supplies to do stuff
To open your Agent’s inventory To give your Agent supplies What We’ll learn
Let’s play with inventory • Two ways: • Tap your Agent and hold with touchscreen • Point the crosshair at your Agent and right click the mouse
Let’s discuss • How do you open your player’s inventory? • How do you open your Agent’s inventory?
Lesson FLet’s review What did you learn today that you didn’t know before? What was most challenging? What questions do you have?
Next time • Build a bridge with code
What we’ll learn To teach your Agent to build a bridge
Building with your agent • Use everything we’ve learned, • plus new coding blocks
What did you learn today that you didn’t know before? What was most challenging? What questions do you have? Lesson G Let’s review
Next time • Code your Agent to build a city with roads, • buildings, and houses
Craft a conversation between multiple parties. Imagine different Non-Player Characters and develop a story around those characters. Code a conversation with them. Extension Activity 1
Your Agent will reappear in the same place you leave it when you log out. Code a base for your Agent to go to whenever you finish. Extension Activity 2
Build a hedge maze and code your Agent to solve it. Get a classmate to build a maze for you and have your Agent solve the maze using code. Race to see who can code fastest. Add objects to collect, doors to open, bridges to build, or other challenges. Extension Activity 3
Redesign the orientation halls in The Agency. Imagine you are the leader of The Agency and you want new recruits to train their Agent in a new way. Design the space you start in to complement your ideas, then code your way around your own designs. Extension Activity 4