Guest User

Untitled

a guest
Oct 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. function attack()
  2.   turtle.turnRight()
  3.   turtle.attack()
  4.   sleep(0.5)
  5.   turtle.attack()
  6.   turtle.turnLeft()
  7.   turtle.forward()
  8. end
  9. print("Enter a number of cycles")
  10. numb = io.read();
  11. print("Kill all ENDERMANS!!!!")
  12. cycl = 0;
  13. while cycl <= numb do
  14.   for i=0, 17 do
  15.    attack()
  16.   end
  17.   turtle.turnRight()
  18.   attack()
  19.   attack()
  20.   attack()
  21.   turtle.turnRight()
  22.   for i=0,17 do
  23.     attack()
  24.   end
  25.  
  26.  turtle.turnRight()
  27.    attack()
  28.    attack()
  29.    attack()
  30.  turtle.turnRight()
  31. end
Add Comment
Please, Sign In to add comment