Flower Trail

Introduction

Leave a trail of flowers everywhere you go.

A flower trail

Step 1

Find the ||player:on player walk|| block and pull it out onto the workspace.

player.onTravelled(TravelMethod.Walk, function () {

})

Step 2

Get a ||blocks:place|| block and put it inside the ||player:on player walk||. Click on the Grass block and then look for the Dandelion in the choices for blocks. Select that one.

The numbers (~0 ~0 ~0) mean the flower will be placed at your current position. So, every position you walk to gets a flower.

player.onTravelled(TravelMethod.Walk, function () {
    blocks.place(Block.YellowFlower, positions.create(0, 0, 0))
})

Step 3

Let’s have more flowers! Pick out another ||blocks:place|| block and put it just below the other one. Change its Grass block to an Oxeye Daisy.

player.onTravelled(TravelMethod.Walk, function () {
    blocks.place(Block.YellowFlower, positions.create(0, 0, 0))
    blocks.place(Block.OxeyeDaisy, positions.create(0, 0, 0))
})

Step 4

Go to Minecraft and start walking for a second or two. Turn around and look at your flower trail. If you walk backward, you can watch the flowers pop from the ground as you move.

Step 5

Now that’s very nice, but it would be fun to place a whole bouqeut while you walk! Right click on one of the ||blocks:place|| blocks and select Duplicate from the menu. Move the new block into the ||player:on player walk||. Change the flower in the new block to different one that you like.

player.onTravelled(TravelMethod.Walk, function () {
    blocks.place(Block.YellowFlower, positions.create(0, 0, 0))
    blocks.place(Block.OxeyeDaisy, positions.create(0, 0, 0))
    blocks.place(Block.Poppy, positions.create(0, 0, 0))
})

Step 6

Go back into Minecraft and see what your trail looks like now.

Step 7

In the first ||blocks:place||, change the first 0 for the position to 1. In the third ||blocks:place||, change its first 0 for position to -1. Now you will place the flowers in rows!

player.onTravelled(TravelMethod.Walk, function () {
    blocks.place(Block.YellowFlower, positions.create(1, 0, 0))
    blocks.place(Block.OxeyeDaisy, positions.create(0, 0, 0))
    blocks.place(Block.Poppy, positions.create(-1, 0, 0))
})

Step 8

Go to Minecraft now and make rows of flowers everywhere!