Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
627 B
0
Indexable
Never
# Set the starting position of the agent
agent.teleport_to(pos(392, -3, 1563))

# Loop to mine a 2x2 tunnel for 600 blocks along the X-axis
for i in range(600):
    # Mine the block in front of the agent
    agent.destroy(FORWARD)
    # Move forward
    agent.move(FORWARD, 1)
    # Mine the blocks above, to the left and right for the 2x2 tunnel
    agent.destroy(UP)
    agent.move(LEFT, 1)
    agent.destroy(FORWARD)
    agent.destroy(UP)
    agent.move(RIGHT, 2)
    agent.destroy(FORWARD)
    agent.destroy(UP)
    agent.move(LEFT, 1)

# Bring the agent back to the starting position
agent.teleport_to(pos(392, -3, 1563))
Leave a Comment