Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CCAttack 0.1 by Teki
- turtle.select(1)
- function unload()
- for i=1, 16 do
- turtle.select(i)
- turtle.drop()
- end
- end
- while true do
- local state = redstone.getInput("left")
- redstone.setOutput("right", state)
- if not state then
- turtle.attack()
- end
- sleep(0)
- unload()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement