8-10 yrs old
In this lesson, we will create a trail of flowers for our player using the “On Player Walk” event.
May 3, 2017
Video: Make a flower trail
Check out the video from MakeCode team of this lesson.
PDF of this lesson
PDF of this lesson with images. Please reference this when using this lesson.
How can you use event-driven programming model to create a flower trail?
From the Blocks Toolbox drawer, drag and drop the Place Block at Position block onto the coding Workspace.
Drag and drop the Place Block at Position block underneath the On Player Walk block. You should hear it click into place, and become enabled.
Change the block that is placed from a grass block to a dandelion by clicking on the block drop-down menu
In your Minecraft game, walk around. You should see a trail of flowers following you!
Ask students to change items to make trails out of another block.
Ask students to change placement instances for the flower block.