Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --test--
- num5 = 0
- num6 = 0
- num9 = 0
- num10 = 0
- num1 = 0
- turtle.select(1)
- while rs.getInput("top") == true do
- m = turtle.getFuelLevel()
- while m <= 5 do
- turtle.select(16)
- turtle.refuel(1)
- print(m)
- sleep(1)
- turtle.select(5)
- end
- turtle.select(5)
- sleep(0.2)
- print(turtle.getFuelLevel() .. "Fuel")
- sleep(2)
- --#######################--
- turtle.suck()
- slot5 = turtle.getItemCount(5)
- slot5 = slot5-1
- print(" Turtle hat noch " .. slot5 .. " Sand im Slot 5")
- turtle.drop(slot5)
- sleep(1)
- --#######################--
- turtle.select(6)
- turtle.suck()
- slot6 = turtle.getItemCount(6)
- slot6 = slot6-1
- print(" Turtle hat noch " .. slot6 .. " Sand im Slot 6")
- turtle.drop(slot6)
- sleep(1)
- --#######################--
- turtle.select(9)
- turtle.suck()
- slot9 = turtle.getItemCount(9)
- slot9 = slot9-1
- print(" Turtle hat noch " .. slot9 .. " Sand im Slot 9")
- turtle.drop(slot9)
- sleep(1)
- --#######################--
- turtle.select(10)
- turtle.suck()
- slot10 = turtle.getItemCount(10)
- slot10 = slot10-1
- print(" Turtle hat noch " .. slot10 .. " Sand im Slot 10")
- turtle.drop(slot10)
- sleep(1)
- --#######################--
- turtle.select(1)
- sleep(1)
- turtle.craft()
- slot1 = turtle.getItemCount(1)
- print(" Turtle hat noch " .. slot1 .. " Sandstone im Slot 1")
- sleep(1)
- --#######################--
- turtle.turnRight()
- sleep(0.2)
- turtle.drop()
- sleep(0.5)
- turtle.turnLeft()
- sleep(1)
- print("Done")
- end
- print("NoSig")
- sleep(0.3)
- shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement