Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- if #args ~= 1 then
- print( "Correct use: floorbuild <x> <y>")
- error()
- end
- x = args[1]
- y = args[2]
- blockscount = 0
- for countY = 1,x,1 do
- -- X --
- for count = 1,x,1 do
- blockcount = 0
- while not (blockcount > 0) do
- sleep(1)
- currslot = turtle.getSelectedSlot()
- blockcount = turtle.getItemCount(currslot)
- if currslot == 16 then
- print("Last Slot")
- if blockcount == 0 then
- turtle.select(1)
- else
- print(blockcount)
- end
- else
- print("Slot:")
- print(currslot)
- print("Blockcount:")
- print(blockcount)
- if blockcount == 0 then
- print("In slot change IF.")
- newslot = currslot + 1
- turtle.select(newslot)
- end
- end
- end
- turtle.digDown()
- turtle.placeDown()
- if count ~= x then
- turtle.dig()
- turtle.forward()
- else
- print("X Line Done")
- end
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- for countFor = 1,x,1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement