Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- turtle.forward()
- print(tArgs[1]..":"..tArgs[2])
- x = tonumber(tArgs[1])
- y = tonumber(tArgs[2])
- local slot = 1
- turtle.select(slot)
- local function slotChecker()
- while turtle.getItemCount(slot) == 0 do
- slot = slot + 1
- if slot == 17 then
- print("Inventory Empty! Refill and Press a Key.")
- local event, param = os.pullEvent()
- if event == "key" then
- slot = 1
- end
- end
- turtle.select(slot)
- print("Switching to " .. slot)
- end
- end
- slotChecker()
- print("starting in 5...")
- sleep(5)
- turtle.placeDown()
- for j = 1, y do
- for i = 1, x-1 do
- turtle.forward()
- slotChecker()
- turtle.placeDown()
- end
- if j~= y then
- if j % 2 == 0 then
- turtle.turnRight()
- turtle.forward()
- slotChecker()
- turtle.placeDown()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- slotChecker()
- turtle.placeDown()
- turtle.turnLeft()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment