Agent Wall

The agent makes a tall wall

Move the agent back and forth to build a wall.

Try the code:

player.onChat("wall", function () {
    agent.teleportToPlayer()
    agent.setAssist(AgentAssist.PlaceOnMove, true)
    agent.setAssist(AgentAssist.DestroyObstacles, true)
    for (let i = 0; i < 10; i++) {
        agent.move(SixDirection.Forward, 4)
        agent.move(SixDirection.Up, 1)
        agent.turn(TurnDirection.Left)
        agent.turn(TurnDirection.Left)
    }
})