Yellow brick road

Yellow brick road

Make a path of gold wherever you go.

Try the code:

player.onTravelled(TravelMethod.Walk, function () {
    blocks.place(GOLD_BLOCK, pos(0, -1, 0))
})
player.onChat("road", function () {
    blocks.fill(
    GOLD_BLOCK,
    pos(-1, -1, -1),
    pos(1, -1, 1),
    FillOperation.Replace
    )
})