Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- turtle.refuel()
- print("Making a brand new floor!")
- print("I have "..turtle.getItemCount(16).." blocks for use!")
- local finished=false
- local selected=16
- local total=0
- turtle.select(selected)
- while not finished do
- while not(turtle.detect() or turtle.detectDown()) do
- if turtle.placeDown() then
- total=total+1
- end
- turtle.forward()
- -- change the block slot if no more left!
- if turtle.getItemCount(selected) == 0 then
- selected=selected-1
- turtle.select(selected)
- local blocks = turtle.getItemCount(selected)
- print("Switched to slot ".. selected .. " now having ".. blocks .." for use!")
- end
- end
- if turtle.detectDown() then
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- if turtle.detectDown() then
- print("Floor finished!")
- finished=true
- end
- else
- turtle.turnRight()
- end
- end
- print("I have useed ".. total .. " to make your new floor <(' -' <)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement