Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs={ ... }
- print("Making a brand new floor for you master..")
- turtle.refuel()
- local counter=0
- local finished=false
- local selected=2
- local placed=0
- local row=0
- local left = true
- local right = false
- turtle.select(selected)
- while not finished do
- if placed == 64 then
- selected=selected+1
- turtle.select(selected)
- placed=0
- end
- while not (turtle.detect()) do
- if turtle.forward() then
- counter=counter+1
- if not turtle.detectDown() then
- turtle.placeDown()
- placed=placed+1
- end
- end
- print("Turtle say: bump!")
- if counter == 10 then
- if right then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- left = true
- right = false
- row=row+1
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- left = false
- right = true
- row=row+1
- end
- end
- if row == 3 then
- finished=true
- print("Hey master, I'm done!")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement