Advertisement
Guest User

attackLoop

a guest
May 25th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 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.     else
  7.         sleep(5)
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement