Advertisement
Skillkiller

Killer Turtle

Feb 11th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. -- Greift in der Front an
  2. -- Vergleicht alle Slots von 2 bis 16 mit Slot 1
  3. -- Gleich: Kommt in die Chest links
  4. -- Nicht gleich: Kommt in die Chest rechts
  5.  
  6. while true do
  7.   if turtle.getItemCount(16) > 0 then
  8.         turtle.turnLeft()
  9.         for n=2,16 do
  10.           turtle.select(n)
  11.           if turtle.compareTo(1) then
  12.                 turtle.drop()
  13.           end
  14.         end
  15.         turtle.select(1)
  16.         turtle.drop(turtle.getItemCount(1)-1)
  17.         turtle.turnLeft()
  18.         turtle.turnLeft()
  19.         for n=2,16 do
  20.           turtle.select(n)
  21.           if not turtle.compareTo(1) then
  22.                 turtle.drop()
  23.           end
  24.         end
  25.         turtle.select(1)
  26.         turtle.turnLeft()
  27.   end
  28.   turtle.attack()  
  29.   sleep(.1)
  30.   turtle.suck()
  31.   sleep(.1)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement