Guest User

Untitled

a guest
Jun 4th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. print("I am an attack turtle")
  2. while true do
  3.     if redstone.getInput("back") then --side the wire is on
  4.         turtle.attack()
  5.         sleep(0.5)
  6.         if turtle.getItemCount(16) > 1 then
  7.             for i = 1, 16 do
  8.                 turtle.select(i)
  9.                 turtle.dropDown()
  10.             end
  11.         end
  12.     else
  13.         sleep(5)
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment