Advertisement
Te-ki

CCAttack

Mar 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. -- CCAttack 0.1 by Teki
  2.  
  3. turtle.select(1)
  4.  
  5. function unload()
  6.     for i=1, 16 do
  7.         turtle.select(i)
  8.         turtle.drop()
  9.     end
  10. end
  11.  
  12. while true do
  13.     local state = redstone.getInput("left")
  14.     redstone.setOutput("right", state)
  15.     if not state then
  16.         turtle.attack()
  17.     end
  18.     sleep(0)
  19.     unload()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement