Agent Wall
Move the agent back and forth to build a wall.
Try the code:
player.onChat("wall", function () {
agent.teleportToPlayer()
agent.move(FORWARD, 4)
agent.setSlot(1)
agent.setAssist(PLACE_ON_MOVE, true)
agent.setAssist(DESTROY_OBSTACLES, true)
for (let i = 0; i < 10; i++) {
agent.setItem(MOSSY_STONE_BRICKS, 5, 1)
agent.move(FORWARD, 4)
agent.move(UP, 1)
agent.turn(LEFT_TURN)
agent.turn(LEFT_TURN)
}
})