Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- local dis = tonumber(tArgs[1])
- hs = 1
- st = 5
- cobble = 9
- -- Functions
- function turnaround()
- turtle.turnRight()
- turtle.turnRight()
- end
- function placedown(item)
- turtle.detect()
- if (turtle.detectDown == true) then
- turtle.digDown()
- end
- turtle.select(item)
- turtle.placeDown()
- end
- function placefront(item)
- turtle.detect()
- if (turtle.detectDown == true) then
- turtle.dig()
- end
- turtle.select(item)
- turtle.place()
- end
- function placerow()
- placefront(st)
- placedown(gr)
- turnaround()
- turtle.forward()
- placedown(gr)
- turtle.forward()
- placedown(gr)
- placefront(st)
- turnaround()
- end
- function detectright()
- turtle.turnRight()
- turtle.forward()
- if (turtle.forward() == true) then
- turtle.digForward()
- end
- turtle.forward()
- end
- -- Main Script
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- placerow()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement