Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- left = true
- slot = 1
- -- Checks for Empty slot and switches if empty
- local function slotCheck()
- if turtle.getItemCount() == 0 then
- slot = slot + 1
- end
- turtle.select(slot)
- end
- -- Startup prompt
- print("Platform dimensions, Width to the left and depth straight ahead.")
- print("Enter a width")
- width = read()
- print("Enter a depth")
- depth = read()
- -- Start of turtle movement
- for i = 1, width do
- for j = 1, depth do
- slotCheck()
- turtle.placeDown()
- turtle.forward()
- end
- if left == true then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- left = false
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- left = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement