Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- if turtle then
- print("Starting up, Press Ctrl+T to exit")
- print("Auto Attack By DPad+")
- for i = 1,16 do
- turtle.select(i)
- if turtle.getItemCount(i) > 0 then
- turtle.drop()
- end
- end
- turtle.select(1)
- while true do
- if redstone.getInput("bottom") then
- turtle.attack()
- turtle.suck()
- if turtle.getItemCount(1) > 2 then
- for i = 1,8 do
- turtle.select(i)
- if turtle.getItemCount(i) > 0 then
- turtle.drop()
- end
- sleep(0.1)
- end
- end
- turtle.select(1)
- else
- sleep(0.1)
- end
- end
- else
- print("This is a program meant for a turtle. You're on a computer now")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement