Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forward(stp)
- for c=1,stp do
- while turtle.detect() do
- turtle.dig()
- sleep(1)
- end
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- end
- end
- function tleft(stp)
- for c=1,stp do
- turtle.turnLeft()
- end
- end
- function tright(stp)
- for c=1,stp do
- turtle.turnRight()
- end
- end
- function room()
- forward(6)
- tleft(1)
- forward(2)
- tleft(1)
- forward(4)
- tleft(1)
- forward(4)
- tleft(1)
- forward(4)
- tleft(1)
- forward(3)
- tleft(1)
- forward(3)
- tleft(1)
- forward(2)
- tleft(1)
- forward(2)
- tleft(1)
- forward(1)
- tright(1)
- forward(1)
- end
- for c=1,5 do
- room()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement