Intermediate Coding Lesson 2 Assessment
We have just started the 2nd minecraft education course, Intermediate Coding using MakeCode v3.0, and on the 1 assessment are asked to "Create a code that responds to the chat command buildwall and takes an argument which is how long the wall is and codes the agent to bild a wall of that length. I went through the activities prior to the assessment multiple times, but I still don't understand how to get the code to take an argument....t
-
Hi kirill hale - welcome aboard to the world of coding! Glad to see you diving in the deeper end of the pool! I'm going to go get some snips and start adding them here for you. Give me some time. If I were you, I would be looking at the "agent build wall" example code, though. ;)
0 -
Hi Debbie. Thank you so much for the reply. so the num1 in this case would be the length, and if I want to add height, I would add a second variable next to num1? Also, was it necessary to set blocks?
0 -
The method of placing blocks in this code is to "set on move." So when the agent moves forward num1 times, it sets that may blocks.
I personally like to set blocks one at a time, but I'm weird that way =]
Yes, to add a second parameter, you must add it when you create the function, and use it when you code. =]
0
Please sign in to leave a comment.
Comments
3 comments