Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Room v0.1--
- tArgs={ ... }
- length=tonumber(tArgs[1])
- width=tonumber(tArgs[2])
- height=tonumber(tArgs[3])
- --Functions
- function turnaround()
- turtle.turnRight()
- turtle.turnRight()
- end
- function back()
- turnaround()
- for b=1,length do
- turtle.forward()
- end
- end
- for w=1,width do
- for h=1,height do
- for i=1,length do
- turtle.dig()
- turtle.forward()
- sleep(0.025)
- end
- back()
- turnaround()
- turtle.digDown()
- turtle.down()
- end
- for h=1,height do
- turtle.up()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment